Last modified: 2014-10-24 16:34:30 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T64795, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 62795 - Configure all deployment-prep instances to use local salt and puppet master by default
Configure all deployment-prep instances to use local salt and puppet master b...
Status: NEW
Product: Wikimedia Labs
Classification: Unclassified
deployment-prep (beta) (Other open bugs)
unspecified
All All
: High normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 64010
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-18 17:24 UTC by Bryan Davis
Modified: 2014-10-24 16:34 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Bryan Davis 2014-03-18 17:24:12 UTC
Find a way to make all new instances created in the deployment-prep project point to the puppet and salt masters on the deployment-salt instance by default.

This would entail adding the role::puppet::self and setting these global puppet variables:

deployment_server_override:
  deployment-bastion.eqiad.wmflabs

salt_master_finger_override:
  dd:d8:68:70:8c:65:a3:af:46:5c:3f:4f:d4:be:6c:71

salt_master_finger_override:
  deployment-salt.eqiad.wmflabs

puppetmaster:
  deployment-salt.eqiad.wmflabs
Comment 2 Antoine "hashar" Musso (WMF) 2014-03-19 15:33:46 UTC
Should we set those parameters directly in the puppet manifests?  This way whenever an instance is created it will be configured to point to that puppet master.

Maybe just after manifests/realm.pp
Comment 3 Bryan Davis 2014-03-19 17:06:24 UTC
For now, manual instructions on configuring a host are given at https://wikitech.wikimedia.org/wiki/Nova_Resource:Deployment-prep/How_code_is_updated#Converting_a_host_to_use_local_puppetmaster_and_salt_master
Comment 4 Antoine "hashar" Musso (WMF) 2014-10-24 14:22:38 UTC
We still need to have to set the configuration manually.   Pointing to the local puppet seems easy enough, I am not sure how we could automatically sign the puppet/salt keys though :(
Comment 5 Bryan Davis 2014-10-24 16:34:30 UTC
Both salt <http://docs.saltstack.com/en/latest/ref/configuration/master.html#auto-accept> and puppet <https://docs.puppetlabs.com/puppet/latest/reference/ssl_autosign.html> can be configured to automatically sign keys. I personally don't see that there would be an sort of serious security implications of making this work within the beta cluster.

Yuvi and Giuseppe are working on integrating wikitech and hiera in such a way that it should be possible to setup per-project configuration that can automate adding the proper roles and settings to all hosts in the deployment-prep project. The trickiest part will probably be trying to find a way to automate removing the salt key for the labs wide master so that the project specific master's key can be saved on each host.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links