-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnova_user.sls
More file actions
68 lines (63 loc) · 1.37 KB
/
nova_user.sls
File metadata and controls
68 lines (63 loc) · 1.37 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
nova:
group.present:
- name: nova
- system: True
user.present:
- fullname: Nova OpenStack User
- shell: /bin/bash
- home: /var/lib/nova
- system: True
- gid_from_name: True
- require:
- group: nova
nova_ssh_private_key:
file.managed:
- name: /var/lib/nova/.ssh/id_rsa
- source: salt://simple_stack/templates/id_rsa.jinja
- template: jinja
- mode: 600
- user: nova
- group: nova
- require:
- user: nova
- group: nova
nova_ssh_authorized_keys:
file.managed:
- name: /var/lib/nova/.ssh/authorized_keys
- source: salt://simple_stack/templates/authorized_keys.jinja
- template: jinja
- mode: 600
- user: nova
- group: nova
- require:
- user: nova
- group: nova
nova_ssh_fix_perm:
file.directory:
- name: /var/lib/nova/.ssh
- mode: 700
- user: nova
- group: nova
- require:
- user: nova
- group: nova
nova_run_openstack:
file.directory:
- name: /var/run/openstack
- mode: 700
- user: nova
- group: nova
- require:
- user: nova
- group: nova
nova_ssh_config:
file.managed:
- name: /var/lib/nova/.ssh/config
- source: salt://simple_stack/templates/ssh_config.jinja
- template: jinja
- mode: 644
- user: nova
- group: nova
- require:
- user: nova
- group: nova