Uploaded image for project: 'Forge Modules'
  1. Forge Modules
  2. MODULES-2417

Upgrade to puppet-mysql 3.6.0 Broke My Manifest

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: mysql
    • Labels:
      None
    • Environment:
    • Template:

      Description

      Hi,

      I don't mean to clutter your JIRA instance, but my Vagrant VM recently stopped working due to the new release of the puppet-mysql module.

      This is the snippet from my Vagrantfile:

          #Install required puppet modules
          config.vm.provision :shell do |shell|
              shell.inline = "mkdir -p /etc/puppet/modules;
                  puppet module install puppetlabs/mysql"
          end
      

      My manifest looks like:

      $mysql_root_password = "pass"
      $mysql_database_name = "dbname"
      $mysql_user = "user"
      $mysql_user_password = "userpass"
       
      #Install MySQL server
      class { 'mysql::server':
         root_password => $mysql_root_password
      }
       
      # Create database
      mysql::db { $mysql_database_name:
          user            => $mysql_user,
          password        => $mysql_user_password,
          sql             => "/tmp/db.sql",
          host            => "localhost",
          grant           => ["all"]
      }
      

      The error I get when applying the manifest is:

      ==> default: Invalid parameter show_diff at /etc/puppet/modules/mysql/manifests/server/root_password.pp:35 on node precise32.jhs.local
      

      To fix things I had to change my Vagrantfile to:

          #Install required puppet modules
          config.vm.provision :shell do |shell|
              shell.inline = "mkdir -p /etc/puppet/modules;
                  puppet module install puppetlabs/mysql --version 3.5.0"
          end
      

      Maybe it's because I'm using precise?

      Cheers,
      Pascal

        Attachments

          Activity

          Hide
          david.schmitt David Schmitt added a comment -

          A fix for that has been merged in https://github.com/puppetlabs/puppetlabs-mysql/pull/766 and will be released with the next version. Meanwhile you can pull the fix directly from github.

          Show
          david.schmitt David Schmitt added a comment - A fix for that has been merged in https://github.com/puppetlabs/puppetlabs-mysql/pull/766 and will be released with the next version. Meanwhile you can pull the fix directly from github.

            People

            • Assignee:
              Unassigned
              Reporter:
              psbrandt Pascal Brandt
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support