Last active
February 20, 2018 19:45
-
-
Save mcornea/1d43f59f1b592c2ceba4fa612e79d2eb to your computer and use it in GitHub Desktop.
ffu_repo.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/puppet/services/tripleo-packages.yaml b/puppet/services/tripleo-packages.yaml | |
| index d523f3f7..9ecbe5ed 100644 | |
| --- a/puppet/services/tripleo-packages.yaml | |
| +++ b/puppet/services/tripleo-packages.yaml | |
| @@ -38,7 +38,7 @@ parameters: | |
| default: 'tripleo-repos' | |
| type: string | |
| FastForwardRepoArgs: | |
| - default: {'tripleo_repos': {'ocata': '-b ocata current', 'pike': '-b pike current'}} | |
| + default: {'tripleo_repos': [{'release': 'ocata', 'args': '-b ocata current'}, {'release': 'pike', 'args': '-b pike current'}]} | |
| type: json | |
| outputs: | |
| @@ -114,7 +114,10 @@ outputs: | |
| args: | |
| chdir: /home/stack/tripleo-repos/ | |
| - name: Enable tripleo-repos | |
| - command: "tripleo-repos {{ fast_forward_repo_args.tripleo_repos[release] | join(' ') }}" | |
| + command: tripleo-repos {{ cmd_args | join(' ') }} | |
| + vars: | |
| + query: "tripleo_repos[?release=='{{release}}'].args" | |
| + cmd_args: "{{ fast_forward_repo_args | json_query(query) }}" | |
| when: | |
| - step|int == 3 | |
| - is_bootstrap_node|bool |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment