Add mos repos and vr for genkeys

This commit is contained in:
Dmitry Shulyak 2015-11-11 12:13:13 +02:00
parent 975258374b
commit eb64d35afa
3 changed files with 24 additions and 1 deletions

View File

@ -122,7 +122,7 @@ class Task(object):
hiera.rb hiera.rb
File.open("/tmp/fuel_specs/#{ENV['SPEC']}", 'a') { |f| f << "- #{key}\n" } 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( lookup_stack_path = os.path.join(
INPUTS_LOCATION, self.spec_name) INPUTS_LOCATION, self.spec_name)
if not os.path.exists(lookup_stack_path): if not os.path.exists(lookup_stack_path):
@ -161,6 +161,11 @@ class DGroup(object):
def resources(self): def resources(self):
yield OrderedDict(
[('id', RoleData.name+"{{index}}"),
('from', 'f2s/resources/'+RoleData.name),
('location', "{{node}}")])
for t, _, _ in self.tasks: for t, _, _ in self.tasks:
if t.name in self.filtered: if t.name in self.filtered:
continue continue

5
f2s/vrs/genkeys.yaml Normal file
View File

@ -0,0 +1,5 @@
id: genkeys
resources:
- id: genkeys{{index}}
from: f2s/resources/genkeys
location: {{node}}

View File

@ -21,3 +21,16 @@ resources:
dst: /var/lib/astute/mongodb/mongodb.key dst: /var/lib/astute/mongodb/mongodb.key
- src: /etc/puppet/modules - src: /etc/puppet/modules
dst: /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