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
2014-02-25 08:41:10 11842 [Note] Slave: received end packet from server, apparent master shutdown: | |
2014-02-25 08:41:10 11842 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.009379' at position 61227697 | |
2014-02-25 08:41:10 11842 [Warning] Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information. | |
2014-02-25 08:41:10 11842 [Note] Slave: received end packet from server, apparent master shutdown: | |
2014-02-25 08:41:10 11842 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.009379' at position 61227697 | |
2014-02-25 08:41:10 11842 [Warning] Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options |
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
Sep 3 12:13:00 vagrant-debian-squeeze mysqld_safe: Starting mysqld daemon with databases from /var/lib/mysql | |
Sep 3 12:13:00 vagrant-debian-squeeze mysqld_safe: WSREP: Running position recovery with --log_error=/tmp/tmp.Sm9NLXSZDi --pid-file=/var/lib/mysql/vagrant-debian-squeeze-recover.pid | |
Sep 3 12:13:02 vagrant-debian-squeeze mysqld_safe: WSREP: Recovered position 00000000-0000-0000-0000-000000000000:-1 | |
Sep 3 12:13:02 vagrant-debian-squeeze mysqld: 130903 12:13:02 [Note] WSREP: wsrep_start_position var submitted: '00000000-0000-0000-0000-000000000000:-1' | |
Sep 3 12:13:02 vagrant-debian-squeeze mysqld: 130903 12:13:02 [Note] WSREP: Read nil XID from storage engines, skipping position init | |
Sep 3 12:13:02 vagrant-debian-squeeze mysqld: 130903 12:13:02 [Note] WSREP: wsrep_load(): loading provider library '/usr/lib64/galera/libgalera_smm.so' | |
Sep 3 12:13:02 vagrant-debian-squeeze mysqld: 130903 12:13:02 [Note] WSREP: wsrep_load(): Galera 23.2.6-squeeze(r) by Codership Oy <info@ |
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
[Wed Jul 31 13:39:19 2013] [notice] caught SIGTERM, shutting down | |
[ 2013-07-31 13:39:19.7555 11667/7f718959b720 agents/Watchdog/Main.cpp:440 ]: Options: { 'analytics_log_user' => 'nobody', 'default_group' => 'nobody', 'default_python' => 'python', 'default_ruby' => 'ruby', 'default_user' => 'nobody', 'log_level' => '0', 'max_instances_per_app' => '0', 'max_pool_size' => '6', 'passenger_root' => '/usr/lib/ruby/gems/1.8/gems/passenger-4.0.5', 'pool_idle_time' => '300', 'temp_dir' => '/tmp', 'union_station_gateway_address' => 'gateway.unionstationapp.com', 'union_station_gateway_port' => '443', 'user_switching' => 'true', 'web_server_pid' => '11666', 'web_server_type' => 'apache', 'web_server_worker_gid' => '48', 'web_server_worker_uid' => '48' } | |
[ 2013-07-31 13:39:19.7595 11670/7f8e72dde720 agents/HelperAgent/Main.cpp:555 ]: PassengerHelperAgent online, listening at unix:/tmp/passenger.1.0.11666/generation-0/request | |
[ 2013-07-31 13:39:19.7626 11676/7fe21302e7e0 agents/LoggingAgent/Main.cpp:271 ]: PassengerLoggi |
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
[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 |
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
[root@yomamma puppet]# cat hiera.yaml | |
--- | |
:backends: | |
- yaml | |
:yaml: | |
:datadir: /etc/puppet/hieradata | |
:hierarchy: | |
- fqdn/%{fqdn} | |
- osfamily/%{osfamily} |
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
[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 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
#!/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 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
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 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
[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 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
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 |