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
Apr 24 02:13:02 z1 puppet-master[9901]: Allowing authenticated client x7.foo.bar.local(10.0.0.77) access to fileserver.list | |
Apr 24 02:13:02 z1 puppet-master[9901]: Using cached node for x7.foo.bar.local | |
Apr 24 02:13:02 z1 puppet-master[9901]: (mount[plugins]) Listing /plugins for x7.foo.bar.local | |
Apr 24 02:13:03 z1 puppet-master[9901]: Allowing authenticated client x7.foo.bar.local(10.0.0.77) access to fileserver.describe | |
Apr 24 02:13:03 z1 puppet-master[9901]: Using cached node for x7.foo.bar.local | |
Apr 24 02:13:03 z1 puppet-master[9901]: (mount[plugins]) Describing /plugins for x7.foo.bar.local | |
Apr 24 02:13:03 z1 puppet-master[9901]: Allowing authenticated client x7.foo.bar.local(10.0.0.77) access to fileserver.list | |
Apr 24 02:13:03 z1 puppet-master[9901]: Using cached node for x7.foo.bar.local | |
Apr 24 02:13:03 z1 puppet-master[9901]: (mount[plugins]) Listing /plugins/puppet for x7.foo.bar.local | |
Apr 24 02:13:03 z1 puppet-master[9901]: Allowing authenticated client x7.foo.bar.local(10.0.0.77) access to fileserv |
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
root@megatron-dev:~# rails generate rspec:install | |
/usr/lib/ruby/1.8/rubygems.rb:233:in `activate': can't activate rack (~> 1.4.5, runtime) for ["actionpack-3.2.12", "railties-3.2.12"], already activated rack-1.5.2 for ["rack-ssl-1.3.3", "railties-3.2.12"] (Gem::LoadError) | |
from /usr/lib/ruby/1.8/rubygems.rb:249:in `activate' | |
from /usr/lib/ruby/1.8/rubygems.rb:248:in `each' | |
from /usr/lib/ruby/1.8/rubygems.rb:248:in `activate' | |
from /usr/lib/ruby/1.8/rubygems.rb:249:in `activate' | |
from /usr/lib/ruby/1.8/rubygems.rb:248:in `each' | |
from /usr/lib/ruby/1.8/rubygems.rb:248:in `activate' | |
from /usr/lib/ruby/1.8/rubygems.rb:1082:in `gem' | |
from /var/lib/gems/1.8/bin/rails:18 |
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
root@megatron-dev:/var/www/megatron# rails -v | |
/usr/lib/ruby/1.9.1/rubygems.rb:238:in `activate': can't activate rack (~> 1.4.5, runtime) for ["actionpack-3.2.12", "railties-3.2.12"], already activated rack-1.5.2 for ["rack-ssl-1.3.3", "railties-3.2.12"] (Gem::LoadError) | |
from /usr/lib/ruby/1.9.1/rubygems.rb:254:in `block in activate' | |
from /usr/lib/ruby/1.9.1/rubygems.rb:253:in `each' | |
from /usr/lib/ruby/1.9.1/rubygems.rb:253:in `activate' | |
from /usr/lib/ruby/1.9.1/rubygems.rb:254:in `block in activate' | |
from /usr/lib/ruby/1.9.1/rubygems.rb:253:in `each' | |
from /usr/lib/ruby/1.9.1/rubygems.rb:253:in `activate' | |
from /usr/lib/ruby/1.9.1/rubygems.rb:1065:in `gem' | |
from /var/lib/gems/1.9.1/bin/rails:18:in `<main>' |
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
root@megatron-dev:/var/www/megatron# gem update --system | |
ERROR: While executing gem ... (RuntimeError) | |
gem update --system is disabled on Debian, because it will overwrite the content of the rubygems Debian package, and might break your Debian system in subtle ways. The Debian-supported way to update rubygems is through apt-get, using Debian official repositories. | |
If you really know what you are doing, you can still update rubygems by setting the REALLY_GEM_UPDATE_SYSTEM environment variable, but please remember that this is completely unsupported by Debian. | |
root@megatron-dev:/var/www/megatron# REALLY_GEM_UPDATE_SYSTEM=true gem update --system | |
Updating RubyGems | |
Updating rubygems-update | |
Successfully installed rubygems-update-1.8.25 | |
Updating RubyGems to 1.8.25 | |
Installing RubyGems 1.8.25 |
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
[root@training ~]# puppet agent -t | |
Warning: Unable to fetch my node definition, but the agent run will continue: | |
Warning: Error 400 on SERVER: Failed to find training.puppetlabs.vm via exec: Execution of '/etc/puppet/node.rb training.puppetlabs.vm' returned 1: | |
Info: Retrieving plugin | |
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed when searching for node training.puppetlabs.vm: Failed to find training.puppetlabs.vm via exec: Execution of '/etc/puppet/node.rb training.puppetlabs.vm' returned 1: | |
Warning: Not using cache on failed catalog | |
Error: Could not retrieve catalog; skipping run | |
[root@training ~]# /etc/puppet/node.rb training.puppetlabs.vm |
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
class foo { | |
// Lots more stuff here... | |
private function processPersonContacts($person, $callback_function) { | |
if (is_array($person->contacts)) { | |
foreach($person->contacts as $contact) { | |
$this->processContactEmailRecords($person, $contact, $callback_function); | |
} |
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
#!/bin/bash | |
# Configuration | |
. /etc/mysql/mysql_backup.conf | |
# Dump the mysql databases to a daily dump file. | |
function log() | |
{ | |
logger -i -p daemon.info -t mysqldump "$1" | |
echo $1 >> $LOGFILE |
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
[root@yomamma puppet]# hiera -d foreman::foreman_url -c hiera.yaml fqdn=yomamma.dedi.example.com | |
DEBUG: Tue Jul 30 16:15:39 +0100 2013: Hiera YAML backend starting | |
DEBUG: Tue Jul 30 16:15:39 +0100 2013: Looking up foreman::foreman_url in YAML backend | |
DEBUG: Tue Jul 30 16:15:39 +0100 2013: Looking for data source common | |
nil | |
[root@yomamma puppet]# cat hiera.yaml | |
--- | |
:backends: | |
- yaml | |
:yaml: |
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
[root@yomamma puppet]# cat hiera.yaml | |
--- | |
:backends: | |
- yaml | |
:yaml: | |
:datadir: /etc/puppet/hieradata | |
:hierarchy: | |
- fqdn/%{fqdn} | |
- osfamily/%{osfamily} |
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
[root@yomamma foreman]# yum list installed | grep pass | |
mod_passenger.x86_64 3.0.21-3.el6 @epel | |
pam_passwdqc.x86_64 1.0.5-6.el6 @anaconda-CentOS-201207061011.x86_64/6.3 | |
passwd.x86_64 0.77-4.el6_2.2 @anaconda-CentOS-201207061011.x86_64/6.3 | |
rubygem-passenger.x86_64 3.0.21-3.el6 @epel | |
rubygem-passenger-native.x86_64 3.0.21-3.el6 @epel | |
rubygem-passenger-native-libs.x86_64 3.0.21-3.el6 @epel |
OlderNewer