Created
October 30, 2014 23:16
This file contains 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
# Install beanstalkd | |
class beanstalkd::install { | |
exec { 'install-beanstalkd': | |
path => '/bin:/sbin:/usr/bin:/usr/sbin', | |
command => 'apt-get install beanstalkd -y', | |
cwd => '/home/vagrant' | |
} | |
exec { 'install-console': | |
environment => ["COMPOSER_HOME=/home/vagrant"], | |
path => '/bin:/sbin:/usr/bin:/usr/sbin', | |
command => 'composer create-project --verbose ptrofimov/beanstalk_console -s dev /var/www/beanstalk', | |
cwd => '/home/vagrant' | |
} | |
apache::vhost { 'localhost': | |
ip => '127.0.0.1', | |
port => '81', | |
docroot => '/var/www/beanstalk/public' | |
} | |
file { '/var/www/beanstalk/config.php': | |
ensure => file, | |
source => "puppet:///modules/beanstalkd/config.php" | |
} | |
file { '/var/www/beanstalk/storage.json': | |
mode => 777 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Snippet from log:
==> default: Debug: /Stage[main]/Beanstalkd::Install/File[/var/www/beanstalk/storage.json]: Nothing to manage: no ensure and the resource doesn't exist
==> default: Error: Cannot create /var/www/beanstalk/public; parent directory /var/www/beanstalk does not exist
==> default: Error: /Stage[main]/Beanstalkd::Install/Apache::Vhost[localhost]/File[/var/www/beanstalk/public]/ensure: change from absent to directory failed: Cannot create /var/www/beanstalk/public; parent directory /var/www/beanstalk does not exist
==> default: Notice: /Stage[main]/Beanstalkd::Install/Apache::Vhost[localhost]/File[25-localhost.conf]: Dependency File[/var/www/beanstalk/public] has failures: true
==> default: Warning: /Stage[main]/Beanstalkd::Install/Apache::Vhost[localhost]/File[25-localhost.conf]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Beanstalkd::Install/Apache::Vhost[localhost]/File[25-localhost.conf symlink]: Dependency File[/var/www/beanstalk/public] has failures: true
==> default: Warning: /Stage[main]/Beanstalkd::Install/Apache::Vhost[localhost]/File[25-localhost.conf symlink]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Beanstalkd::Install/Apache::Vhost[localhost]/Apache::Listen[127.0.0.1:81]/Concat::Fragment[Listen 127.0.0.1:81]/File[/var/lib/puppet/concat/_etc_apache2_ports.conf/fragments/10_Listen 127.0.0.1_81]/ensure: defined content as '{md5}0c0a12a89982ac9c053787c1760842fb'
==> default: Info: /Stage[main]/Beanstalkd::Install/Apache::Vhost[localhost]/Apache::Listen[127.0.0.1:81]/Concat::Fragment[Listen 127.0.0.1:81]/File[/var/lib/puppet/concat/etc_apache2_ports.conf/fragments/10_Listen 127.0.0.1_81]: Scheduling refresh of Exec[concat/etc/apache2/ports.conf]
==> default: Debug: /Stage[main]/Beanstalkd::Install/Apache::Vhost[localhost]/Apache::Listen[127.0.0.1:81]/Concat::Fragment[Listen 127.0.0.1:81]/File[/var/lib/puppet/concat/_etc_apache2_ports.conf/fragments/10_Listen 127.0.0.1_81]: The container Concat::Fragment[Listen 127.0.0.1:81] will propagate my refresh event
==> default: Debug: Concat::Fragment[Listen 127.0.0.1:81]: The container Apache::Listen[127.0.0.1:81] will propagate my refresh event
==> default: Debug: Apache::Listen[127.0.0.1:81]: The container Apache::Vhost[localhost] will propagate my refresh event
==> default: Debug: Apache::Vhost[localhost]: The container Class[Beanstalkd::Install] will propagate my refresh event
==> default: Debug: Execconcat_/etc/apache2/ports.conf: Executing check '/var/lib/puppet/concat/bin/concatfragments.sh -o "/var/lib/puppet/concat/_etc_apache2_ports.conf/fragments.concat.out" -d "/var/lib/puppet/concat/_etc_apache2_ports.conf" -t'
==> default: Debug: Executing '/var/lib/puppet/concat/bin/concatfragments.sh -o "/var/lib/puppet/concat/_etc_apache2_ports.conf/fragments.concat.out" -d "/var/lib/puppet/concat/etc_apache2_ports.conf" -t'
==> default: Debug: /Stage[main]/Apache/Concat[/etc/apache2/ports.conf]/Exec[concat/etc/apache2/ports.conf]/unless: cmp: EOF on /var/lib/puppet/concat/_etc_apache2_ports.conf/fragments.concat.out
==> default: Debug: Execconcat_/etc/apache2/ports.conf: Executing '/var/lib/puppet/concat/bin/concatfragments.sh -o "/var/lib/puppet/concat/_etc_apache2_ports.conf/fragments.concat.out" -d "/var/lib/puppet/concat/_etc_apache2_ports.conf"'
==> default: Debug: Executing '/var/lib/puppet/concat/bin/concatfragments.sh -o "/var/lib/puppet/concat/etc_apache2_ports.conf/fragments.concat.out" -d "/var/lib/puppet/concat/etc_apache2_ports.conf"'
==> default: Notice: /Stage[main]/Apache/Concat[/etc/apache2/ports.conf]/Exec[concat/etc/apache2/ports.conf]/returns: executed successfully
==> default: Debug: /Stage[main]/Apache/Concat[/etc/apache2/ports.conf]/Exec[concat/etc/apache2/ports.conf]: The container Concat[/etc/apache2/ports.conf] will propagate my refresh event
==> default: Debug: Execconcat_/etc/apache2/ports.conf: Executing check '/var/lib/puppet/concat/bin/concatfragments.sh -o "/var/lib/puppet/concat/_etc_apache2_ports.conf/fragments.concat.out" -d "/var/lib/puppet/concat/_etc_apache2_ports.conf" -t'
==> default: Debug: Executing '/var/lib/puppet/concat/bin/concatfragments.sh -o "/var/lib/puppet/concat/etc_apache2_ports.conf/fragments.concat.out" -d "/var/lib/puppet/concat/etc_apache2_ports.conf" -t'
==> default: Notice: /Stage[main]/Apache/Concat[/etc/apache2/ports.conf]/Exec[concat/etc/apache2/ports.conf]: Triggered 'refresh' from 5 events
==> default: Debug: /Stage[main]/Apache/Concat[/etc/apache2/ports.conf]/Exec[concat/etc/apache2/ports.conf]: The container Concat[/etc/apache2/ports.conf] will propagate my refresh event
==> default: Info: /Stage[main]/Apache/Concat[/etc/apache2/ports.conf]/File[/etc/apache2/ports.conf]: Filebucketed /etc/apache2/ports.conf to puppet with sum a961f23471d985c2b819b652b7f64321
==> default: Notice: /Stage[main]/Apache/Concat[/etc/apache2/ports.conf]/File[/etc/apache2/ports.conf]/content: content changed '{md5}a961f23471d985c2b819b652b7f64321' to '{md5}a4b1ef2843a7193df62024023aefb6dc'
==> default: Debug: /Stage[main]/Apache/Concat[/etc/apache2/ports.conf]/File[/etc/apache2/ports.conf]: The container Concat[/etc/apache2/ports.conf] will propagate my refresh event
==> default: Debug: Concat[/etc/apache2/ports.conf]: The container Class[Apache] will propagate my refresh event
==> default: Info: Concat[/etc/apache2/ports.conf]: Scheduling refresh of Class[Apache::Service]
==> default: Debug: Execinstall-beanstalkd: Executing 'apt-get install beanstalkd -y'
==> default: Debug: Executing 'apt-get install beanstalkd -y'
==> default: Notice: /Stage[main]/Beanstalkd::Install/Exec[install-beanstalkd]/returns: executed successfully
==> default: Debug: /Stage[main]/Beanstalkd::Install/Exec[install-beanstalkd]: The container Class[Beanstalkd::Install] will propagate my refresh event
==> default: Debug: Execinstall-console: Executing 'composer create-project --verbose ptrofimov/beanstalk_console -s dev /var/www/beanstalk'
==> default: Debug: Executing 'composer create-project --verbose ptrofimov/beanstalk_console -s dev /var/www/beanstalk'
==> default: Notice: /Stage[main]/Beanstalkd::Install/Exec[install-console]/returns: executed successfully
==> default: Debug: /Stage[main]/Beanstalkd::Install/Exec[install-console]: The container Class[Beanstalkd::Install] will propagate my refresh event
==> default: Info: /Stage[main]/Beanstalkd::Install/File[/var/www/beanstalk/config.php]: Filebucketed /var/www/beanstalk/config.php to puppet with sum 55387a9f689552dc4f41eb0148310a8e
==> default: Notice: /Stage[main]/Beanstalkd::Install/File[/var/www/beanstalk/config.php]/content: content changed '{md5}55387a9f689552dc4f41eb0148310a8e' to '{md5}204cf685a6962e9a752a63da190d7a2a'