-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcontroller.sls
More file actions
29 lines (26 loc) · 838 Bytes
/
controller.sls
File metadata and controls
29 lines (26 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
include:
- simple_stack
- simple_stack.clone_repo
- simple_stack.environment
install_controller_node_upload:
file.managed:
- name: /srv/simple-stack/install-controller-node.sh
- source: salt://simple_stack/bin/install-controller-node.sh
- user: root
- group: root
- mode: 755
- require:
- pkg: stack_needed_pkgs
- git: simple_stack_clone
install_controller_node_sh:
cmd.run:
- name: '/srv/simple-stack/install-controller-node.sh /srv/simple-stack/environment.json | tee /tmp/install-openstack.log'
- onlyif: test -f /srv/simple-stack/environment.json
- cwd: /srv/simple-stack
- unless: test -d /opt/stack/nova
- user: root
- shell: /bin/bash
- require:
- git: simple_stack_clone
- file: environment_json
- file: install_controller_node_upload