Bug 1462066 - pushsnap_scriptworker: add esr credentials r=mtabara
MozReview-Commit-ID: KJf8rhvhKQp
--- a/modules/pushsnap_scriptworker/manifests/init.pp
+++ b/modules/pushsnap_scriptworker/manifests/init.pp
@@ -83,15 +83,17 @@ class pushsnap_scriptworker {
# No more files to add
}
'prod': {
file {
$macaroons_config['beta']['target_location']:
content => $macaroons_config['beta']['content'];
$macaroons_config['candidate']['target_location']:
content => $macaroons_config['candidate']['content'];
+ $macaroons_config['esr']['target_location']:
+ content => $macaroons_config['esr']['content'];
}
}
default: {
fail("Invalid pushsnap_scriptworker_env given: ${pushsnap_scriptworker_env}")
}
}
}
--- a/modules/pushsnap_scriptworker/manifests/settings.pp
+++ b/modules/pushsnap_scriptworker/manifests/settings.pp
@@ -48,21 +48,26 @@ class pushsnap_scriptworker::settings {
'beta' => {
content => $_snap_store_macaroons['beta'],
target_location => "${root}/beta_macaroon.cfg",
},
'candidate' => {
content => $_snap_store_macaroons['candidate'],
target_location => "${root}/candidate_macaroon.cfg",
},
+ 'esr' => {
+ content => $_snap_store_macaroons['esr'],
+ target_location => "${root}/esr_macaroon.cfg",
+ },
}
$macaroons_locations = {
beta => $macaroons_config['beta']['target_location'],
candidate => $macaroons_config['candidate']['target_location'],
+ esr => $macaroons_config['esr']['target_location'],
}
}
default: {
fail("Invalid pushsnap_scriptworker_env given: ${pushsnap_scriptworker_env}")
}
}
$script_config_content = {