質問編集履歴

4

2018/09/04 05:33

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -118,79 +118,155 @@
118
118
 
119
119
  ```
120
120
 
121
- #central servers (ubuntu lxd containers)
122
-
123
- [cs-servers]
124
-
125
- xroad-lxd-cs ansible_connection=lxd
126
-
127
-
128
-
129
- #configuration proxies (ubuntu lxd containers, optional)
130
-
131
- [cp-servers]
132
-
133
- #xroad-lxd-cp ansible_connection=lxd
134
-
135
-
136
-
137
- #certification authority, time stamping authority and ocsp service server for testing purposes (ubuntu)
138
-
139
- [ca-servers]
140
-
141
- xroad-lxd-cs ansible_connection=lxd
142
-
143
-
144
-
145
- #security servers (ubuntu lxd containers)
146
-
147
- [ss-servers]
148
-
149
- xroad-lxd-ss1 ansible_connection=lxd
150
-
151
- #for a more realistic setup, add at least one additional server
152
-
153
- #xroad-lxd-ss2 ansible_connection=lxd
154
-
155
-
156
-
157
- [ss-servers:children]
158
-
159
- centos-ss
160
-
161
-
162
-
163
- #security servers (centos lxd containers, not supported in variant ee)
164
-
165
- [centos-ss]
166
-
167
- #xroad-lxd-rh-ss1 ansible_connection=lxd
168
-
169
-
170
-
171
- #container host
172
-
173
- [lxd-servers]
174
-
175
- localhost ansible_connection=local
176
-
177
-
178
-
179
- #compilation host
180
-
181
- [compile-servers]
182
-
183
- localhost ansible_connection=local
184
-
185
-
186
-
187
- ### vars ###
188
-
189
-
190
-
191
- [ss-servers:vars]
192
-
193
- variant=vanilla
121
+ ---
122
+
123
+ # This playbook compiles X-Road and installs the compiled packages to the defined host inventory
124
+
125
+
126
+
127
+ - hosts: lxd-servers
128
+
129
+ roles:
130
+
131
+ - init-lxd
132
+
133
+ tags:
134
+
135
+ - init
136
+
137
+
138
+
139
+ - hosts: ss-servers
140
+
141
+ any_errors_fatal: true
142
+
143
+ tasks:
144
+
145
+ - name: RHEL-support check
146
+
147
+ fail:
148
+
149
+ msg: "Variant '{{ variant }}' does not support RHEL-servers"
150
+
151
+ when:
152
+
153
+ - (variant is defined and variant == "ee")
154
+
155
+ - ansible_os_family == "RedHat"
156
+
157
+
158
+
159
+ - hosts: compile-servers
160
+
161
+ roles:
162
+
163
+ - compile
164
+
165
+ - build-packages
166
+
167
+ tags:
168
+
169
+ - compile
170
+
171
+
172
+
173
+ - hosts: ss-servers, cs-servers, cp-servers
174
+
175
+ roles:
176
+
177
+ - packages-to-local-repo
178
+
179
+ tags:
180
+
181
+ - packages
182
+
183
+
184
+
185
+ - hosts: cs-servers
186
+
187
+ become: yes
188
+
189
+ become_user: root
190
+
191
+ roles:
192
+
193
+ - xroad-cs
194
+
195
+ tags:
196
+
197
+ - cs
198
+
199
+ - install
200
+
201
+ vars_files:
202
+
203
+ - vars_files/local_repo.yml
204
+
205
+
206
+
207
+ - hosts: cp-servers
208
+
209
+ become: yes
210
+
211
+ become_user: root
212
+
213
+ roles:
214
+
215
+ - xroad-cp
216
+
217
+ tags:
218
+
219
+ - cp
220
+
221
+ - install
222
+
223
+ vars_files:
224
+
225
+ - vars_files/local_repo.yml
226
+
227
+
228
+
229
+ - hosts: ca-servers
230
+
231
+ become: yes
232
+
233
+ become_user: root
234
+
235
+ pre_tasks:
236
+
237
+ - raw: apt install openssl
238
+
239
+ roles:
240
+
241
+ - xroad-ca
242
+
243
+ tags:
244
+
245
+ - ca
246
+
247
+ - install
248
+
249
+
250
+
251
+ - hosts: ss-servers
252
+
253
+ become: yes
254
+
255
+ become_user: root
256
+
257
+ roles:
258
+
259
+ - xroad-ss
260
+
261
+ tags:
262
+
263
+ - ss
264
+
265
+ - install
266
+
267
+ vars_files:
268
+
269
+ - vars_files/local_repo.yml
194
270
 
195
271
  ```
196
272
 

3

2018/09/04 05:33

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -192,7 +192,7 @@
192
192
 
193
193
  variant=vanilla
194
194
 
195
- ``> 引用テキスト
195
+ ```
196
196
 
197
197
 
198
198
 

2

2018/09/04 05:28

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -192,85 +192,7 @@
192
192
 
193
193
  variant=vanilla
194
194
 
195
- ```hosts/lxd_hosts.txt
196
-
197
- ```
198
-
199
- #central servers (ubuntu lxd containers)
200
-
201
- [cs-servers]
202
-
203
- xroad-lxd-cs ansible_connection=lxd
204
-
205
-
206
-
207
- #configuration proxies (ubuntu lxd containers, optional)
208
-
209
- [cp-servers]
210
-
211
- #xroad-lxd-cp ansible_connection=lxd
212
-
213
-
214
-
215
- #certification authority, time stamping authority and ocsp service server for testing purposes (ubuntu)
216
-
217
- [ca-servers]
218
-
219
- xroad-lxd-cs ansible_connection=lxd
220
-
221
-
222
-
223
- #security servers (ubuntu lxd containers)
224
-
225
- [ss-servers]
226
-
227
- xroad-lxd-ss1 ansible_connection=lxd
228
-
229
- #for a more realistic setup, add at least one additional server
230
-
231
- #xroad-lxd-ss2 ansible_connection=lxd
232
-
233
-
234
-
235
- [ss-servers:children]
236
-
237
- centos-ss
238
-
239
-
240
-
241
- #security servers (centos lxd containers, not supported in variant ee)
242
-
243
- [centos-ss]
195
+ ``> 引用テキスト
244
-
245
- #xroad-lxd-rh-ss1 ansible_connection=lxd
246
-
247
-
248
-
249
- #container host
250
-
251
- [lxd-servers]
252
-
253
- localhost ansible_connection=local
254
-
255
-
256
-
257
- #compilation host
258
-
259
- [compile-servers]
260
-
261
- localhost ansible_connection=local
262
-
263
-
264
-
265
- ### vars ###
266
-
267
-
268
-
269
- [ss-servers:vars]
270
-
271
- variant=vanilla
272
-
273
- ```
274
196
 
275
197
 
276
198
 

1

画像挿入

2018/09/04 05:27

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
 
14
14
 
15
- https://github.com/nordic-institute/X-Road/blob/develop/src/Vagrant.mdを参考にしています。
15
+ [https://github.com/nordic-institute/X-Road/blob/develop/src/Vagrant.md](https://github.com/nordic-institute/X-Road/blob/develop/src/Vagrant.md)を参考にしています。
16
16
 
17
17
 
18
18
 
@@ -20,15 +20,13 @@
20
20
 
21
21
 
22
22
 
23
- ```
24
-
25
- ![エラーッセージ](b27a446a86e0e46bb76253883799fb56.png)
23
+ ![メージ説明](15233ebbeecc39d6cc9c87190ebaf86e.png)
26
-
24
+
27
- ![エラーッセージ](4b27ba8514e83db9246275e3bdd7fe8d.png)
25
+ ![メージ説明](62aec57ea6d96f3958a1bee04533b749.png)
28
-
26
+
29
- ![エラーッセージ](82f5abbb5004e3056775eab081a058e0.png)
27
+ ![メージ説明](72a3df5ada55c33461f7d74061509ba8.png)
30
-
31
- ```
28
+
29
+
32
30
 
33
31
  ### 該当のソースコード
34
32