This repository has been archived by the owner on Dec 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpillar.example.sls
208 lines (202 loc) · 6.65 KB
/
pillar.example.sls
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
{# Controller Node #}
opennebula:
lookup:
controller:
config:
oned_conf:
context:
db_server: 127.0.0.1
db_user: oneadmin
db_passwd: oneadmin
db_name: opennebula
oneadmin:
config:
ec2_auth:
contents: 'serveradmin:myinitialpasswhichwillbechangedafterfirstlogin'
occi_auth:
contents: 'serveradmin:myinitialpasswhichwillbechangedafterfirstlogin'
one_auth:
contents: 'oneadmin:myinitialpasswhichwillbechangedafterfirstlogin'
oneflow_auth:
contents: 'serveradmin:myinitialpasswhichwillbechangedafterfirstlogin'
onegate_auth:
contents: 'serveradmin:myinitialpasswhichwillbechangedafterfirstlogin'
one_key:
contents: 'myinitialpasswhichwillbechangedafterfirstlogin'
sunstone_auth:
contents: 'serveradmin:myinitialpasswhichwillbechangedafterfirstlogin'
sshconfig:
manage: True
regenerate_ssh_keypair: True
manage_remotes: True
remotes:
current_version: v4.10.1-1
versions:
- src: https://gitlab.domain.de/user/one-remotes.git
rev: v4.10.1-1
orchestrate:
hostlist:
tgt: I@saltenv:prod and ( I@roles:opennebula_controller or I@roles:opennebula_compute_node ) and I@entities:one_nc1
hostpubkeys:
manage: True
tgt: I@saltenv:prod and ( I@roles:opennebula:controller:True or I@roles:opennebula:compute_node:True )
hostnames:
tgt: I@saltenv:prod and ( I@roles:opennebula_controller or I@roles:opennebula_compute_node ) and I@entities:one_nc1
mine_functions:
oneadmin_pubkey:
mine_function: ssh.user_keys
user: oneadmin
pubfile: /var/lib/one/.ssh/id_rsa.pub
prvfile: False
{# Compute Node #}
{# Collecting oneadmin's sshpubkey on the controller and deploy on e.g. compute_node #}
opennebula:
lookup:
orchestrate:
controller_sshpubkeys:
manage: True
tgt: I@saltenv:prod and I@roles:opennebula:controller:True
fun: oneadmin_pubkey
exprform: compound
{# (Web) frontend Node #}
opennebula:
lookup:
oneadmin:
config:
manage:
# - one_auth
# - one_key
- sunstone_auth
# one_auth:
# contents: 'oneadmin:myinitialpasswhichwillbechangedafterfirstlogin'
# one_key:
# contents: 'myinitialpasswhichwillbechangedafterfirstlogin'
sunstone_auth:
contents: 'serveradmin:myinitialpasswhichwillbechangedafterfirstlogin'
sunstone:
# sls_include:
# - crypto.x509
# sls_extend:
# crypto-x509-key-sunstone_key:
# file:
# - require:
# - group: oneadmin
config:
sunstone_server:
config:
:tmpdir: /var/tmp
:one_xmlrpc: 'http://127.0.0.1:2633/RPC2'
:host: 127.0.0.1
:port: 9869
:sessions: memory
:memcache_host: 127.0.0.1
:memcache_port: 11211
:memcache_namespace: opennebula.sunstone
:debug_level: 3
:auth: opennebula
:core_auth: cipher
:vnc_proxy_port: 29876
:vnc_proxy_support_wss: only
:vnc_proxy_cert: /etc/ssl/certs/32_62_C5_12_01_httpd_crt.crt.pem
:vnc_proxy_key: /etc/ssl/private/32_62_C5_12_01_httpd_key.key.pem
:vnc_proxy_ipv6: false
:lang: en_US
:table_order: desc
:marketplace_url: 'http://marketplace.opennebula.systems/appliance'
:oneflow_server: 'http://127.0.0.1:2474/'
:routes:
- :oneflow
- :vcenter
- :support
:instance_types:
- :name: small-x1
:cpu: 1
:vcpu: 1
:memory: 128
:description: Very small instance for testing purposes
- :name: small-x2
:cpu: 2
:vcpu: 2
:memory: 512
:description: Small instance for testing multi-core applications
- :name: medium-x2
:cpu: 2
:vcpu: 2
:memory: 1024
:description: General purpose instance for low-load servers
- :name: medium-x4
:cpu: 4
:vcpu: 4
:memory: 2048
:description: General purpose instance for medium-load servers
- :name: large-x4
:cpu: 4
:vcpu: 4
:memory: 4096
:description: General purpose instance for servers
- :name: large-x8
:cpu: 8
:vcpu: 8
:memory: 8192
:description: General purpose instance for high-load servers
sunstone_views:
config:
logo: images/opennebula-sunstone-v4.0.png
available_tabs:
- dashboard-tab
- system-tab
- users-tab
- groups-tab
- acls-tab
- vresources-tab
- vms-tab
- templates-tab
- images-tab
- files-tab
- infra-tab
#- clusters-tab
- hosts-tab
- datastores-tab
- vnets-tab
#- zones-tab
#- marketplace-tab
#- oneflow-dashboard
#- oneflow-services
#- oneflow-templates
- provision-tab
#- support-tab
groups:
oneadmin:
- admin
- vdcadmin
- user
- cloud
- vcenter
default:
- cloud
sunstone_view_cloud:
config:
provision_logo: images/one_small_logo.png
enabled_tabs:
provision-tab: true
tabs:
provision-tab:
panel_tabs:
users: false
flows: false
templates: false
actions:
Template.chmod: false
Template.delete: false
dashboard:
quotas: true
vms: true
vdcquotas: false
vdcvms: false
users: false
create_vm:
capacity_select: false
network_select: false
service:
ensure: dead
enable: False