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 bash_completion! | |
apt-get install bash-completion | |
# git package already contains '/etc/bash_completion.d/git' file |
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
# from apt puppetlabs repo ... | |
apt-get install puppedb | |
# | |
puppet module install puppetlabs-puppetdb | |
Preparing to install into /puppet/modules ... | |
Downloading from https://forge.puppetlabs.com ... | |
Installing -- do not interrupt ... | |
/puppet/modules | |
└─┬ puppetlabs-puppetdb (v1.1.2) | |
├── cprice404-inifile (v0.0.3) |
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
####### Enable remote access (with password [md5]) | |
sudo vi /etc/postgresql/9.1/main/pg_hba.conf | |
# append the line (with the IP that you want to be able to access the DB) | |
host all all XXX.XXX.XXX.XXX/24 md5 | |
sudo vi /etc/postgresql/9.1/main/postgresql.conf | |
# Change listen_addresses='localhost' to | |
listen_addresses='localhost, XXX.XXX.XXX.XXX' | |
sudo /etc/init.d/postgresql restart |
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
crm resource stop <resource> | |
crm resource delete <resource> |
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
# enable maintenance mode before you start | |
crm_attribute -t crm_config -n is_managed_default -v false |
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
# enable maintenance mode before you start | |
crm configure property maintenance-mode=true |
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
wget http://apt.puppetlabs.com/puppetlabs-release-squeeze.deb | |
dpkg -i puppetlabs-release-squeeze.deb | |
apt-get update | |
apt-get -t puppetlabs-release install puppet puppetmaster |
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
sudo apt-get install postgresql pgadmin3 | |
# remove server from automatic startup at boot time | |
sudo update-rc.d-insserv -f postgresql remove |
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
sudo su - postgres | |
psql | |
ALTER USER postgres with password 'new-password'; | |
\q |
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
# corosync-objctl | grep member | |
runtime.totem.pg.mrp.srp.members.1526792202.ip=r(0) ip(10.0.1.219) r(1) ip(10.254.254.254) | |
runtime.totem.pg.mrp.srp.members.1526792202.join_count=1 | |
runtime.totem.pg.mrp.srp.members.1526792202.status=joined | |
runtime.totem.pg.mrp.srp.members.1560346634.ip=r(0) ip(10.0.1.221) r(1) ip(10.254.254.253) | |
runtime.totem.pg.mrp.srp.members.1560346634.join_count=1 | |
runtime.totem.pg.mrp.srp.members.1560346634.status=joined | |
# corosync-cfgtool -a 1526792202 -a 1560346634 | |
10.0.1.219 10.254.254.254 | |
10.0.1.221 10.254.254.253 |