Page MenuHomePhabricator
Paste P12305

moving pontoon env to new domain
ActivePublic

Authored by Kormat on Thu, Aug 20, 12:23 PM.
Non-puppet nodes:
- Update rolemap.yaml to the new domain names
- On each host edit /etc/hosts and change the domain
- Run puppet agent twice on each host
Renaming puppetdb server:
- Do the above
- Restart these services on the puppetdb server in some order (maybe even this one?):
- postgresql
- puppetdb
- uwsgi-puppetdb-microservice
- nginx
- Restart apache2 on puppetmaster.
Renaming puppetmaster:
- Update rolemap.yaml
- Edit /etc/hosts and set new domain
- Run puppet agent. It will fail reloading apache2
- cp -a /var/lib/puppet/server/ssl/ca/signed/<new fqdn>.pem /var/lib/puppet/server/ssl/certs/
- cp -a /var/lib/puppet/ssl/private_keys/<new fqdn>.pem /var/lib/puppet/server/ssl/private_keys/
- restart apache2
- on each client:
- sudo sed -i 's/eqiad.wmflabs/eqiad1.wikimedia.cloud/' /etc/puppet/puppet.conf
- sudo sed -i 's/eqiad.wmflabs/eqiad1.wikimedia.cloud/' /etc/puppet/puppet.conf.d/10-main.conf
- sudo run-puppet-agent
Finally:
- Drop the old hostnames from puppet db: `puppet node deactivate <node>`
- And remove their certs and other metadata: `puppet node clean <node>`

Event Timeline

Kormat created this paste.Thu, Aug 20, 12:23 PM
Kormat edited the content of this paste. (Show Details)Thu, Aug 20, 1:11 PM
Kormat edited the content of this paste. (Show Details)Thu, Aug 20, 1:14 PM
Kormat edited the content of this paste. (Show Details)Thu, Aug 20, 1:27 PM
Kormat edited the content of this paste. (Show Details)
Kormat edited the content of this paste. (Show Details)Thu, Aug 20, 1:32 PM
Kormat edited the content of this paste. (Show Details)Thu, Aug 20, 3:16 PM
Kormat edited the content of this paste. (Show Details)Thu, Aug 20, 3:18 PM
fgiunchedi edited the content of this paste. (Show Details)Tue, Sep 8, 12:30 PM