Add librarian example
This commit is contained in:
parent
5a42e3b8d0
commit
5e0d2f9fa0
15
examples/librarian/README
Normal file
15
examples/librarian/README
Normal file
@ -0,0 +1,15 @@
|
||||
Usage
|
||||
=====
|
||||
|
||||
Run it from /vagrant dir:
|
||||
|
||||
```
|
||||
solar resource clear_all
|
||||
solar resource create nodes templates/nodes.yaml '{"count": 1}'
|
||||
solar resource create librarian_example examples/librarian/librarian.yaml '{"node": "node1"}'
|
||||
|
||||
solar changes stage
|
||||
solar changes process
|
||||
solar orch run-once
|
||||
solar orch report -w 100
|
||||
```
|
20
examples/librarian/librarian.yaml
Normal file
20
examples/librarian/librarian.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
id: librarian_examples
|
||||
|
||||
resources:
|
||||
- id: librarian
|
||||
location: {{node}}
|
||||
from: resources/librarian
|
||||
values:
|
||||
modules:
|
||||
- name: puppetlabs-ntp
|
||||
version: 4.1.0
|
||||
- name: puppet-keystone
|
||||
type: git
|
||||
url: https://github.com/openstack/puppet-keystone
|
||||
ref: 5.1.0
|
||||
|
||||
events:
|
||||
- type: depends_on
|
||||
parent_action: librarian.run
|
||||
state: success
|
||||
depend_action: rabbitmq_service1.run
|
Loading…
x
Reference in New Issue
Block a user