Skip to content

Instantly share code, notes, and snippets.

@glarizza
Created May 10, 2012 03:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glarizza/114a409990e08c323be0 to your computer and use it in GitHub Desktop.
Save glarizza/114a409990e08c323be0 to your computer and use it in GitHub Desktop.
Error with Cloud Provisioner
## Ruby Code
require 'puppet/face'
arguments = {
'image' => 'ami-30fe7300',
'keyname' => 'gary_pl_west2',
'keyfile' => '/path/to/gary_pl_west2.pem',
'login' => 'ec2-user',
'install_script' => 'puppet-enterprise-http',
'installer_payload' => 'https://pm.puppetlabs.com/puppet-enterprise/latest/puppet-enterprise-latest-el-6-x86_64.tar.gz',
'type' => 'm1.small',
'region' => 'us-west-2',
'security_group' => 'gary_master',
'installer_answers' => '/path/to/pe_2.5_master.txt'
}
the_ip = Puppet::Face[:node_aws, :current].bootstrap(arguments)
## Answers File
q_install=y
q_puppet_cloud_install=n
q_puppet_enterpriseconsole_auth_database_name=console_auth
q_puppet_enterpriseconsole_auth_database_password=puppet
q_puppet_enterpriseconsole_auth_database_user=console_auth
q_puppet_enterpriseconsole_auth_password=puppetlabs
q_puppet_enterpriseconsole_auth_user_email=gary@puppetlabs.com
q_puppet_enterpriseconsole_database_install=y
q_puppet_enterpriseconsole_database_name=console
q_puppet_enterpriseconsole_database_password=puppet
q_puppet_enterpriseconsole_database_remote=n
q_puppet_enterpriseconsole_database_root_password=puppet
q_puppet_enterpriseconsole_database_user=console
q_puppet_enterpriseconsole_httpd_port=443
q_puppet_enterpriseconsole_install=y
q_puppet_enterpriseconsole_inventory_hostname=`hostname --fqdn`
q_puppet_enterpriseconsole_inventory_port=8140
q_puppet_enterpriseconsole_master_hostname=`hostname --fqdn`
q_puppet_enterpriseconsole_smtp_host=smtp.gmail.com
q_puppet_enterpriseconsole_smtp_password=
q_puppet_enterpriseconsole_smtp_port=25
q_puppet_enterpriseconsole_smtp_use_tls=n
q_puppet_enterpriseconsole_smtp_user_auth=n
q_puppet_enterpriseconsole_smtp_username=
q_puppet_symlinks_install=y
q_puppetagent_certname=`hostname --fqdn`
q_puppetagent_install=y
q_puppetagent_server=`hostname --fqdn`
q_puppetca_install=y
q_puppetmaster_certname=`hostname --fqdn`
q_puppetmaster_dnsaltnames=puppet,puppetmaster,puppetmaster.puppetlabs.vm,puppet.puppetlabs.vm,`hostname --fqdn`
q_puppetmaster_enterpriseconsole_hostname=localhost
q_puppetmaster_enterpriseconsole_port=443
q_puppetmaster_forward_facts=n
q_puppetmaster_install=y
q_vendor_packages_install=y
## Install Log
================================================================================
Puppet Enterprise v2.5.1 installer
Puppet Enterprise documentation can be found at http://links.puppetlabs.com/puppet_enterprise_2.5_documentation
--------------------------------------------------------------------------------
STEP 1: READ ANSWERS FROM FILE
## Reading answers from file: ./puppet.answers
--------------------------------------------------------------------------------
STEP 2: SELECT AND CONFIGURE ROLES
This installer will offer to install the puppet master, console, cloud
provisioner, and puppet agent roles.
-> puppet master
The puppet master serves configurations to a group of puppet agent nodes.
This role also provides MCollective's message queue and client interface.
It should be installed on a robust, dedicated server.
?? Install puppet master? [y/N] y
-> cloud provisioner
The cloud provisioner can create and bootstrap new machine instances and
add them to your Puppet infrastructure. It should be installed on a
trusted node where site administrators have shell access.
?? Install the cloud provisioner? [y/N] n
-> console
The console is a web interface for viewing reports, classifying nodes,
directly managing resources, controlling Puppet runs, and invoking
MCollective agents. It should usually be installed on the puppet master
server, but can also installed separately.
?? Install the console? [Y/n] y
-> puppet agent
The puppet agent role is automatically installed with the console, puppet
master, and cloud provisioner roles.
?? The puppet master's certificate will contain a unique name ("certname");
this should be the main DNS name at which it can be reliably reached.
Puppet master's certname? [Default:
ip-10-252-77-185.us-west-2.compute.internal] ip-10-252-77-185.us-west-2.compute.internal
?? The puppet master's certificate can contain DNS aliases; agent nodes will
only trust the master if they reach it at its certname or one of these
official aliases. Puppet master's DNS aliases (comma-separated list)?
[Default:
ip-10-252-77-185,ip-10-252-77-185.us-west-2.compute.internal,puppet,puppet.us-west-2.compute.internal] puppet,puppetmaster,puppetmaster.puppetlabs.vm,puppet.puppetlabs.vm,ip-10-252-77-185.us-west-2.compute.internal
?? Admin email address (will be used as account name) for accessing the
console interface? gary@puppetlabs.com
?? Password for user gary@puppetlabs.com (minimum 8 characters)?
?? The console requires a MySQL database server. Install a new database
server from your operating system's repository? [Y/n] y
?? The new MySQL server software has a 'root' user account; what should its
password be (minimum 4 characters)?
The console requires an SMTP server to email account information to
users.
?? What is the name of your SMTP server? smtp.gmail.com
?? Console database name? [Default: console] console
?? Console database user? [Default: console] console
?? Database user password (minimum 4 characters)?
?? What is the name of the authentication database? [Default: console_auth] console_auth
?? What is the name of the user authentication database user? [Default:
console_auth] console_auth
?? What is the password for console_auth (the user authentication database
user)?
-> Vendor Packages
The installer has detected that Puppet Enterprise requires additional
packages from your operating system vendor's repositories, and can
automatically install them. If you choose not to install these packages
automatically, the installer will exit so you can install them manually.
Additional vendor packages required for installation:
* apr
* apr-util
* apr-util-ldap
* dmidecode
* mysql
* mysql-server
* pciutils
* system-logos
?? Install these packages automatically? [Y/n] y
-> Convenience Links
The selected Puppet software will be installed into "/opt/puppet", which
may not be included in your default shell PATH. For ease of use, this
installer can create symbolic links to these executables in
"/usr/local/bin".
?? Create symbolic links to Puppet executables in "/usr/local/bin"? [Y/n] y
--------------------------------------------------------------------------------
STEP 3: CONFIRM PLAN
You have selected to install the following components (and their dependencies)
* Puppet Master
* Console
* Puppet Agent
?? Perform installation? [Y/n] y
## Saved answers to file: puppet-enterprise/answers.lastrun.ip-10-252-77-185.us-west-2.compute.internal
================================================================================
## Saved answers to file: /etc/puppetlabs/installer/answers.install
Created: /etc/puppetlabs/facter/facts.d
--------------------------------------------------------------------------------
STEP 4: INSTALL PACKAGES
## Installing packages from repositories...
Loaded plugins: fastestmirror, priorities, security, update-motd
Loading mirror speeds from cached hostfile
* amzn-main: packages.us-west-2.amazonaws.com
* amzn-updates: packages.us-west-2.amazonaws.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package apr.x86_64 0:1.3.9-3.8.amzn1 will be installed
---> Package apr-util.x86_64 0:1.3.9-3.11.amzn1 will be installed
---> Package apr-util-ldap.x86_64 0:1.3.9-3.11.amzn1 will be installed
---> Package dmidecode.x86_64 1:2.11-2.7.amzn1 will be installed
---> Package mysql.noarch 0:5.5-1.3.amzn1 will be installed
--> Processing Dependency: mysql55 >= 5.5 for package: mysql-5.5-1.3.amzn1.noarch
---> Package mysql-server.noarch 0:5.5-1.3.amzn1 will be installed
--> Processing Dependency: mysql55-server >= 5.5 for package: mysql-server-5.5-1.3.amzn1.noarch
---> Package pciutils.x86_64 0:3.1.4-11.6.amzn1 will be installed
--> Processing Dependency: pciutils-libs = 3.1.4-11.6.amzn1 for package: pciutils-3.1.4-11.6.amzn1.x86_64
--> Processing Dependency: libpci.so.3(LIBPCI_3.0)(64bit) for package: pciutils-3.1.4-11.6.amzn1.x86_64
--> Processing Dependency: libpci.so.3(LIBPCI_3.1)(64bit) for package: pciutils-3.1.4-11.6.amzn1.x86_64
--> Processing Dependency: libpci.so.3()(64bit) for package: pciutils-3.1.4-11.6.amzn1.x86_64
---> Package system-logos.noarch 0:4.9.99-11.13.amzn1 will be installed
--> Running transaction check
---> Package mysql55.x86_64 0:5.5.20-1.21.amzn1 will be installed
--> Processing Dependency: mysql55-libs(x86-64) = 5.5.20-1.21.amzn1 for package: mysql55-5.5.20-1.21.amzn1.x86_64
--> Processing Dependency: mysql55-common = 5.5.20-1.21.amzn1 for package: mysql55-5.5.20-1.21.amzn1.x86_64
---> Package mysql55-server.x86_64 0:5.5.20-1.21.amzn1 will be installed
--> Processing Dependency: perl-DBD-MySQL for package: mysql55-server-5.5.20-1.21.amzn1.x86_64
--> Processing Dependency: perl(DBI) for package: mysql55-server-5.5.20-1.21.amzn1.x86_64
--> Processing Dependency: perl-DBI for package: mysql55-server-5.5.20-1.21.amzn1.x86_64
---> Package pciutils-libs.x86_64 0:3.1.4-11.6.amzn1 will be installed
--> Running transaction check
---> Package mysql55-common.x86_64 0:5.5.20-1.21.amzn1 will be installed
---> Package mysql55-libs.x86_64 0:5.5.20-1.21.amzn1 will be installed
---> Package perl-DBD-MySQL.x86_64 0:4.013-3.6.amzn1 will be installed
---> Package perl-DBI.x86_64 0:1.609-4.4.amzn1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
apr x86_64 1.3.9-3.8.amzn1 amzn-main 126 k
apr-util x86_64 1.3.9-3.11.amzn1 amzn-main 95 k
apr-util-ldap x86_64 1.3.9-3.11.amzn1 amzn-main 15 k
dmidecode x86_64 1:2.11-2.7.amzn1 amzn-updates 81 k
mysql noarch 5.5-1.3.amzn1 amzn-main 2.6 k
mysql-server noarch 5.5-1.3.amzn1 amzn-main 2.6 k
pciutils x86_64 3.1.4-11.6.amzn1 amzn-main 90 k
system-logos noarch 4.9.99-11.13.amzn1 amzn-main 9.7 k
Installing for dependencies:
mysql55 x86_64 5.5.20-1.21.amzn1 amzn-updates 7.5 M
mysql55-common x86_64 5.5.20-1.21.amzn1 amzn-updates 41 k
mysql55-libs x86_64 5.5.20-1.21.amzn1 amzn-updates 791 k
mysql55-server x86_64 5.5.20-1.21.amzn1 amzn-updates 13 M
pciutils-libs x86_64 3.1.4-11.6.amzn1 amzn-main 36 k
perl-DBD-MySQL x86_64 4.013-3.6.amzn1 amzn-main 150 k
perl-DBI x86_64 1.609-4.4.amzn1 amzn-main 745 k
Transaction Summary
================================================================================
Install 15 Package(s)
Total download size: 23 M
Installed size: 80 M
Downloading Packages:
--------------------------------------------------------------------------------
Total 17 MB/s | 23 MB 00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : mysql55-libs-5.5.20-1.21.amzn1.x86_64 1/15
Installing : perl-DBI-1.609-4.4.amzn1.x86_64 2/15
Installing : mysql55-common-5.5.20-1.21.amzn1.x86_64 3/15
Installing : mysql55-5.5.20-1.21.amzn1.x86_64 4/15
Installing : perl-DBD-MySQL-4.013-3.6.amzn1.x86_64 5/15
Installing : mysql55-server-5.5.20-1.21.amzn1.x86_64 6/15
Installing : pciutils-libs-3.1.4-11.6.amzn1.x86_64 7/15
Installing : apr-1.3.9-3.8.amzn1.x86_64 8/15
Installing : apr-util-1.3.9-3.11.amzn1.x86_64 9/15
Installing : apr-util-ldap-1.3.9-3.11.amzn1.x86_64 10/15
Installing : pciutils-3.1.4-11.6.amzn1.x86_64 11/15
Installing : mysql-server-5.5-1.3.amzn1.noarch 12/15
Installing : mysql-5.5-1.3.amzn1.noarch 13/15
Installing : 1:dmidecode-2.11-2.7.amzn1.x86_64 14/15
Installing : system-logos-4.9.99-11.13.amzn1.noarch 15/15
Installed:
apr.x86_64 0:1.3.9-3.8.amzn1
apr-util.x86_64 0:1.3.9-3.11.amzn1
apr-util-ldap.x86_64 0:1.3.9-3.11.amzn1
dmidecode.x86_64 1:2.11-2.7.amzn1
mysql.noarch 0:5.5-1.3.amzn1
mysql-server.noarch 0:5.5-1.3.amzn1
pciutils.x86_64 0:3.1.4-11.6.amzn1
system-logos.noarch 0:4.9.99-11.13.amzn1
Dependency Installed:
mysql55.x86_64 0:5.5.20-1.21.amzn1
mysql55-common.x86_64 0:5.5.20-1.21.amzn1
mysql55-libs.x86_64 0:5.5.20-1.21.amzn1
mysql55-server.x86_64 0:5.5.20-1.21.amzn1
pciutils-libs.x86_64 0:3.1.4-11.6.amzn1
perl-DBD-MySQL.x86_64 0:4.013-3.6.amzn1
perl-DBI.x86_64 0:1.609-4.4.amzn1
Complete!
## Installing packages from files...
Preparing... ##################################################
pe-puppet-enterprise-release##################################################
pe-ruby-libs ##################################################
pe-ruby ##################################################
pe-ruby-mysql ##################################################
pe-facter ##################################################
pe-ruby-irb ##################################################
pe-ruby-rdoc ##################################################
pe-rubygems ##################################################
pe-rubygem-stomp ##################################################
pe-rubygem-rake ##################################################
pe-mcollective-common ##################################################
pe-rubygem-rack ##################################################
pe-rubygem-activesupport ##################################################
pe-rubygem-activerecord ##################################################
pe-ruby-shadow ##################################################
pe-puppet ##################################################
pe-rubygem-hiera ##################################################
pe-augeas-libs ##################################################
pe-tanukiwrapper ##################################################
pe-httpd-tools ##################################################
pe-httpd ##################################################
pe-httpd-passenger ##################################################
pe-rubygem-sinatra ##################################################
pe-console-auth ##################################################
pe-puppet-dashboard ##################################################
pe-rubygem-tilt ##################################################
pe-rubygem-ar-extensions ##################################################
pe-rubygem-dalli ##################################################
pe-live-management ##################################################
pe-puppet-dashboard-baseline##################################################
pe-mod_ssl ##################################################
pe-activemq ##################################################
pe-augeas ##################################################
pe-rubygem-hiera-puppet ##################################################
pe-puppet-server ##################################################
pe-mcollective ##################################################
pe-mcollective-client ##################################################
pe-rubygem-stomp-doc ##################################################
pe-ruby-augeas ##################################################
pe-ruby-ldap ##################################################
pe-ruby-ri ##################################################
pe-libevent ##################################################
pe-memcached ##################################################
## Setting up puppet master...
## Checking the agent certificate name detection...
## Setting up puppet agent...
## Setting up the console...
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.
rake aborted!
libmysqlclient.so.16: cannot open shared object file: No such file or directory - /opt/puppet/lib/ruby/site_ruby/1.8/x86_64-linux/mysql.so
(See full trace by running task with --trace)
================================================================================
!! ERROR: Cancelling installation
================================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment