No description
  • HTML 61.5%
  • Puppet 17.3%
  • Perl 16.6%
  • Shell 2.6%
  • PHP 1.4%
  • Other 0.5%
Find a file
2018-11-08 16:15:45 +01:00
hieradata Initial commit 2018-11-08 16:15:45 +01:00
manifests Initial commit 2018-11-08 16:15:45 +01:00
master Initial commit 2018-11-08 16:15:45 +01:00
modules Initial commit 2018-11-08 16:15:45 +01:00
scripts Initial commit 2018-11-08 16:15:45 +01:00
foo Initial commit 2018-11-08 16:15:45 +01:00
foo4.json Initial commit 2018-11-08 16:15:45 +01:00
hiera.yaml Initial commit 2018-11-08 16:15:45 +01:00
install_client.sh Initial commit 2018-11-08 16:15:45 +01:00
install_master.sh Initial commit 2018-11-08 16:15:45 +01:00
README Initial commit 2018-11-08 16:15:45 +01:00
test.json Initial commit 2018-11-08 16:15:45 +01:00
test2.json Initial commit 2018-11-08 16:15:45 +01:00
TODO Initial commit 2018-11-08 16:15:45 +01:00

Percona
- im zeifel neu bootstrappen
- nach bootstrap nochmal puppet wegen rechten


- node neu connecten
  - /var/lib/mysql leeren
  - anderen Knoten starten, diesen Knoten starten, puppet, dann wieder anderen Knoten starten
  - mysqld_safe ausführen (normaler start timeouted beim kompletten sync)
  - warten bis status synced (SHOW GLOBAL STATUS LIKE 'wsrep_local_state_comment'; auf anderer node)
  - mysqld_safe mit kill -TERM xxx (pid von mysqld ... nicht mysqld_safe)
  - dann normal starten, was klappen sollte und schnell gehen sollte

Update xenial

$ aptitude install update-manager-core
$ do-release-upgrade
=> wily

$ aptitude install update-manager-core
$ do-release-upgrade
=> xenial

rm /etc/apt/sources.list.d/docker.list*


pip install --upgrade pip
wget http://apt.puppetlabs.com/puppetlabs-release-pc1-xenial.deb
dpkg -i puppetlabs-release-pc1-xenial.deb
apt-get update
apt-get -y install puppet-agent
puppet module upgrade puppetlabs-apt  --version 2.2.2
puppet module uninstall puppetlabs-mysql
puppet module uninstall nanliu-staging
puppet module install puppetlabs-mysql --version 3.8.0
puppet module upgrade puppetlabs-stdlib --version 4.12.0
puppet module upgrade puppetlabs-vcsrepo --version 1.3.2

apt-get remove lxc-docker


puppetserver node cleanup

for i in `cat foo | python -mjson.tool | grep certname | cut -d"\"" -f4`; do puppet node clean $i; puppet node deactivate $i; done




 for i in `lxc-ls`; do lxc-attach -n $i -- rm /etc/puppetlabs/puppet/ssl/ -rf; lxc-attach -n $i -- puppet agent -t; done