Skip to content

Instantly share code, notes, and snippets.

@bcmiller
Created March 6, 2012 17:50
Show Gist options
  • Save bcmiller/1987721 to your computer and use it in GitHub Desktop.
Save bcmiller/1987721 to your computer and use it in GitHub Desktop.
puppet-try
root@a.bcmiller.allplayers.com:/mnt/apci/Puppet# puppet apply --modulepaapci/Puppet/modules ./manifests/site.pp --debug --verbose
info: Loading facts in php_zend_api_no
info: Loading facts in root_home
info: Loading facts in facter_dot_d
info: Loading facts in gem_bin_path
info: Loading facts in php_zend_api_no
debug: template[inline]: Bound template variables for inline template in 0.00 seconds
debug: template[inline]: Interpolated template inline template in 0.00 seconds
debug: importing '/mnt/apci/Puppet/modules/truth/manifests/enforcer.pp' in environment production
debug: Automatically imported truth::enforcer from truth/enforcer into production
private method `split' called for :undefined:Symbol at /mnt/apci/Puppet/modules/truth/manifests/enforcer.pp:4 on node a.bcmiller.allplayers.com
root@a.bcmiller.allplayers.com:/mnt/apci/Puppet#
@nadavoid
Copy link

nadavoid commented Mar 6, 2012

Here's the command I usually use, inside the manifests directory.

puppet apply --modulepath=/root/puppetdev/Puppet/modules /root/puppetdev/Puppet/manifests/site.pp --debug --verbose --environment=development --external_nodes=/root/puppetdev/Puppet/nodes_extlookup.rb --node_terminus=exec --manifestdir /root/puppetdev/Puppet/manifests

@bcmiller
Copy link
Author

bcmiller commented Mar 6, 2012

With that script got this:

info: Loading facts in php_zend_api_no
info: Loading facts in root_home
info: Loading facts in facter_dot_d
info: Loading facts in gem_bin_path
info: Loading facts in php_zend_api_no
debug: Executing '/mnt/apci//Puppet/nodes_extlookup.rb a.bcmiller.allplayers.com'
debug: template[inline]: Bound template variables for inline template in 0.00 seconds
debug: template[inline]: Interpolated template inline template in 0.00 seconds
debug: importing '/mnt/apci/Puppet/modules/truth/manifests/enforcer.pp' in environment development
debug: Automatically imported truth::enforcer from truth/enforcer into development
debug: importing '/mnt/apci/Puppet/modules/apache/manifests/init.pp' in environment development
debug: importing '/mnt/apci/Puppet/modules/apache/manifests/lib.pp' in environment development
debug: Automatically imported apache from apache into development
Hiera config file /etc/puppet/hiera.yaml not readable at /mnt/apci/Puppet/modules/apache/manifests/init.pp:6 on node a.bcmiller.allplayers.com

@bcmiller
Copy link
Author

bcmiller commented Mar 6, 2012

and from that file:

root@a.bcmiller.allplayers.com:/mnt/apci/Puppet/manifests# nl /mnt/apci/Puppet/modules/apache/manifests/init.pp | more
1 class apache (
2 $prefork_start_servers = hiera('apache_prefork_start_servers'),
3 $prefork_min_spare_servers = hiera('apache_prefork_min_spare_servers')
,
4 $prefork_max_spare_servers = hiera('apache_prefork_max_spare_servers')
,
5 $prefork_max_clients = hiera('apache_prefork_max_clients'),
6 $suhosin_simulation_only = hiera('suhosin_simulation_only')
7 ) {

@bcmiller
Copy link
Author

bcmiller commented Mar 6, 2012

root@a.bcmiller.allplayers.com:/mnt/apci/Puppet/manifests# ./runit.sh
info: Loading facts in php_zend_api_no
info: Loading facts in root_home
info: Loading facts in facter_dot_d
info: Loading facts in gem_bin_path
info: Loading facts in php_zend_api_no
debug: Executing '/mnt/apci//Puppet/nodes_extlookup.rb a.bcmiller.allplayers.com'
debug: template[inline]: Bound template variables for inline template in 0.00 seconds
debug: template[inline]: Interpolated template inline template in 0.00 seconds
debug: importing '/mnt/apci/Puppet/modules/truth/manifests/enforcer.pp' in environment development
debug: Automatically imported truth::enforcer from truth/enforcer into development
debug: importing '/mnt/apci/Puppet/modules/apache/manifests/init.pp' in environment development
debug: importing '/mnt/apci/Puppet/modules/apache/manifests/lib.pp' in environment development
debug: Automatically imported apache from apache into development
debug: hiera(): Hiera YAML backend starting
debug: hiera(): Looking up suhosin_simulation_only in YAML backend
debug: hiera(): Looking for data source development
debug: hiera(): Cannot find datafile /mnt/apci/Puppet/development.yaml, skipping
debug: hiera(): Looking for data source common
debug: hiera(): Cannot find datafile /mnt/apci/Puppet/common.yaml, skipping
debug: hiera(): Hiera Puppet backend starting
debug: hiera(): Looking up suhosin_simulation_only in Puppet backend
debug: hiera(): Looking for data in data::development
debug: hiera(): Looking for data in data::common
debug: hiera(): Looking for data in apache::data
Could not find data item suhosin_simulation_only in any Hiera data file and no default supplied at /mnt/apci/Puppet/modules/apache/manifests/init.pp:6 on node a.bcmiller.allplayers.com
root@a.bcmiller.allplayers.com:/mnt/apci/Puppet/manifests#

@bcmiller
Copy link
Author

bcmiller commented Mar 6, 2012

info: Loading facts in php_zend_api_no
info: Loading facts in root_home
info: Loading facts in facter_dot_d
info: Loading facts in gem_bin_path
info: Loading facts in php_zend_api_no
debug: Executing '/mnt/apci//Puppet/nodes_extlookup.rb a.bcmiller.allplayers.com'
debug: template[inline]: Bound template variables for inline template in 0.00 seconds
debug: template[inline]: Interpolated template inline template in 0.00 seconds
debug: importing '/mnt/apci/Puppet/modules/truth/manifests/enforcer.pp' in environment development
debug: Automatically imported truth::enforcer from truth/enforcer into development
debug: importing '/mnt/apci/Puppet/modules/apache/manifests/init.pp' in environment development
debug: importing '/mnt/apci/Puppet/modules/apache/manifests/lib.pp' in environment development
debug: Automatically imported apache from apache into development
debug: hiera(): Hiera YAML backend starting
debug: hiera(): Looking up suhosin_simulation_only in YAML backend
debug: hiera(): Looking for data source development
debug: hiera(): Looking up apache_prefork_start_servers in YAML backend
debug: hiera(): Looking for data source development
debug: hiera(): Looking up apache_prefork_min_spare_servers in YAML backend
debug: hiera(): Looking for data source development
debug: hiera(): Looking up apache_prefork_max_clients in YAML backend
debug: hiera(): Looking for data source development
debug: hiera(): Looking up apache_prefork_max_spare_servers in YAML backend
debug: hiera(): Looking for data source development
debug: hiera(): Looking up php_apache_execution_time in YAML backend
debug: hiera(): Looking for data source development
debug: hiera(): Looking up php_apache_memory_limit in YAML backend
debug: hiera(): Looking for data source development
debug: hiera(): Looking up php_cli_execution_time in YAML backend
debug: hiera(): Looking for data source development
debug: hiera(): Looking up php_cli_memory_limit in YAML backend
debug: hiera(): Looking for data source development
debug: importing '/mnt/apci/Puppet/modules/apci_packages/manifests/init.pp' in environment development
debug: Automatically imported apci_packages from apci_packages into development
debug: hiera(): Looking up apci_packages in YAML backend
debug: hiera(): Looking for data source development
debug: hiera(): Looking for data source common
debug: hiera(): Looking up apache_packages in YAML backend
debug: hiera(): Looking for data source development
debug: hiera(): Looking for data source common
debug: Scope(Class[Apache]): Retrieving template apache/apache2.conf.erb
debug: template[/mnt/apci/Puppet/modules/apache/templates/apache2.conf.erb]: Bound template variables for /mnt/apci/Puppet/modules/apache/templates/apache2.conf.erb in 0.00 seconds
debug: template[/mnt/apci/Puppet/modules/apache/templates/apache2.conf.erb]: Interpolated template /mnt/apci/Puppet/modules/apache/templates/apache2.conf.erb in 0.01 seconds
debug: Failed to load library 'selinux' for feature 'selinux'
debug: Scope(Class[Apache]): Retrieving template apache/php-cli.ini.erb
debug: template[/mnt/apci/Puppet/modules/apache/templates/php-cli.ini.erb]: Bound template variables for /mnt/apci/Puppet/modules/apache/templates/php-cli.ini.erb in 0.00 seconds
debug: template[/mnt/apci/Puppet/modules/apache/templates/php-cli.ini.erb]: Interpolated template /mnt/apci/Puppet/modules/apache/templates/php-cli.ini.erb in 0.05 seconds
debug: Scope(Class[Apache]): Retrieving template apache/php-apache.ini.erb
debug: template[/mnt/apci/Puppet/modules/apache/templates/php-apache.ini.erb]: Bound template variables for /mnt/apci/Puppet/modules/apache/templates/php-apache.ini.erb in 0.00 seconds
debug: template[/mnt/apci/Puppet/modules/apache/templates/php-apache.ini.erb]: Interpolated template /mnt/apci/Puppet/modules/apache/templates/php-apache.ini.erb in 0.05 seconds
debug: Scope(Class[Apache]): Retrieving template apache/suhosin.ini.erb
debug: template[/mnt/apci/Puppet/modules/apache/templates/suhosin.ini.erb]: Bound template variables for /mnt/apci/Puppet/modules/apache/templates/suhosin.ini.erb in 0.00 seconds
debug: template[/mnt/apci/Puppet/modules/apache/templates/suhosin.ini.erb]: Interpolated template /mnt/apci/Puppet/modules/apache/templates/suhosin.ini.erb in 0.00 seconds
debug: importing '/mnt/apci/Puppet/modules/apci_devel/manifests/init.pp' in environment development
debug: Automatically imported apci_devel from apci_devel into development
Could not find class apt for a.bcmiller.allplayers.com at /mnt/apci/Puppet/modules/apci_devel/manifests/init.pp:4 on node a.bcmiller.allplayers.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment