Created
June 9, 2012 20:31
-
-
Save thedrow/2902480 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PS C:\Users\Omer\vagrant\development environment> vagrant up puppetmaster | |
| [puppetmaster] VM already created. Booting if it's not already running... | |
| [puppetmaster] Clearing any previously set forwarded ports... | |
| [puppetmaster] Forwarding ports... | |
| [puppetmaster] -- 22 => 2222 (adapter 1) | |
| [puppetmaster] Creating shared folders metadata... | |
| [puppetmaster] Clearing any previously set network interfaces... | |
| [puppetmaster] Preparing network interfaces based on configuration... | |
| [puppetmaster] Booting VM... | |
| [puppetmaster] Waiting for VM to boot. This can take a few minutes. | |
| [puppetmaster] VM booted and ready for use! | |
| [puppetmaster] Configuring and enabling network interfaces... | |
| [puppetmaster] Setting host name... | |
| [puppetmaster] Mounting shared folders... | |
| [puppetmaster] -- v-root: /vagrant | |
| [puppetmaster] -- manifests: /tmp/vagrant-puppet/manifests | |
| [puppetmaster] Running provisioner: Vagrant::Provisioners::PuppetServer... | |
| [puppetmaster] Running Puppet agent... | |
| stdin: is not a tty | |
| [puppetmaster] Running provisioner: Vagrant::Provisioners::Puppet... | |
| [puppetmaster] Running Puppet with /tmp/vagrant-puppet/manifests/base.pp... | |
| stdin: is not a tty | |
| Could not find template 'puppetmaster/httpd.conf.erb' at /tmp/vagrant-puppet/manifests/base.pp:28 on node puppetmaste | |
| r.bushido.com | |
| The following SSH command responded with a non-zero exit status. | |
| Vagrant assumes that this means the command failed! | |
| cd /tmp/vagrant-puppet/manifests && puppet apply /tmp/vagrant-puppet/manifests/base.pp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Exec { | |
| path => ['/bin/', '/sbin/', '/usr/bin/', '/usr/sbin/'] | |
| } | |
| node default { | |
| package { | |
| ['httpd', 'mod_ssl', 'puppet-server', 'ruby', 'mod_passenger', | |
| 'rubygem-rack'] : | |
| ensure => latest | |
| } | |
| file { | |
| ['/etc/puppet/rack', '/etc/puppet/rack/public'] : | |
| ensure => directory, | |
| mode => '0755', | |
| owner => root, | |
| group => root, | |
| } | |
| file { | |
| '/etc/puppet/rack/config.ru' : | |
| ensure => present, | |
| source => 'puppet:///modules/puppetmaster/config.ru', | |
| mode => '0644', | |
| owner => puppet, | |
| group => root, | |
| } | |
| file { | |
| '/etc/httpd/conf.d/puppetmasterd.conf' : | |
| ensure => present, | |
| content => template('puppetmaster/../httpd.conf.erb'), | |
| mode => '0644', | |
| owner => root, | |
| group => root, | |
| require => [File['/etc/puppet_rack/config.ru'], | |
| File['/etc/puppet_rack/public'], Package['httpd'], | |
| Package['mod_passenger']], | |
| notify => Service['httpd'], | |
| } | |
| service { | |
| 'httpd' : | |
| ensure => 'running', | |
| enable => true, | |
| hasstatus => false | |
| } | |
| file { | |
| ['/etc/facter', '/etc/facter/facts.d'] : | |
| ensure => directory, | |
| mode => '0755', | |
| owner => root, | |
| group => root, | |
| } | |
| file { | |
| ['/var/lib/puppet', '/var/lib/puppet/reports'] : | |
| ensure => directory, | |
| mode => '0755', | |
| owner => puppet, | |
| group => puppet, | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment