puppet: Read camo key from zulip-secrets.conf.

This commit is contained in:
Tim Abbott
2016-07-30 23:29:21 -07:00
parent 2b40309029
commit 8b285ec0ff
5 changed files with 15 additions and 13 deletions

View File

@@ -23,6 +23,8 @@ CAMO_CONFIG_FILENAME = '/etc/default/camo'
AUTOGENERATED_SETTINGS = ['shared_secret', 'avatar_salt', 'rabbitmq_password', 'local_database_password',
'initial_password_salt']
# TODO: We can eliminate this function if we refactor the install
# script to run generate_secrets before zulip-puppet-apply.
def generate_camo_config_file(camo_key):
camo_config = """ENABLED=yes
PORT=9292