Add mos repos and vr for genkeys
This commit is contained in:
parent
975258374b
commit
eb64d35afa
@ -122,7 +122,7 @@ class Task(object):
|
||||
hiera.rb
|
||||
File.open("/tmp/fuel_specs/#{ENV['SPEC']}", 'a') { |f| f << "- #{key}\n" }
|
||||
"""
|
||||
print self.manifest_name
|
||||
print self.spec_name
|
||||
lookup_stack_path = os.path.join(
|
||||
INPUTS_LOCATION, self.spec_name)
|
||||
if not os.path.exists(lookup_stack_path):
|
||||
@ -161,6 +161,11 @@ class DGroup(object):
|
||||
|
||||
def resources(self):
|
||||
|
||||
yield OrderedDict(
|
||||
[('id', RoleData.name+"{{index}}"),
|
||||
('from', 'f2s/resources/'+RoleData.name),
|
||||
('location', "{{node}}")])
|
||||
|
||||
for t, _, _ in self.tasks:
|
||||
if t.name in self.filtered:
|
||||
continue
|
||||
|
5
f2s/vrs/genkeys.yaml
Normal file
5
f2s/vrs/genkeys.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
id: genkeys
|
||||
resources:
|
||||
- id: genkeys{{index}}
|
||||
from: f2s/resources/genkeys
|
||||
location: {{node}}
|
@ -21,3 +21,16 @@ resources:
|
||||
dst: /var/lib/astute/mongodb/mongodb.key
|
||||
- src: /etc/puppet/modules
|
||||
dst: /etc/puppet/modules
|
||||
- id: mos_repos{{index}}
|
||||
from: templates/mos_repos.yaml
|
||||
values:
|
||||
node: {{node}}
|
||||
index: {{index}}
|
||||
events:
|
||||
- type: depends_on
|
||||
state: success
|
||||
parent:
|
||||
action: run
|
||||
with_tags:
|
||||
- resource=genkeys
|
||||
depend_action: sources{{index}}.run
|
||||
|
Loading…
x
Reference in New Issue
Block a user