235895c7b6ed949aa9d98f86d346f34f862aa966
[yaml_builds.git] / site / dellgen10 / baremetal / promjoin.yaml
1 ---
2 ##############################################################################
3 # Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.        #
4 #                                                                            #
5 # Licensed under the Apache License, Version 2.0 (the "License"); you may    #
6 # not use this file except in compliance with the License.                   #
7 #                                                                            #
8 # You may obtain a copy of the License at                                    #
9 #       http://www.apache.org/licenses/LICENSE-2.0                           #
10 #                                                                            #
11 # Unless required by applicable law or agreed to in writing, software        #
12 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT  #
13 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.           #
14 # See the License for the specific language governing permissions and        #
15 # limitations under the License.                                             #
16 ##############################################################################
17
18 schema: 'drydock/BootAction/v1'
19 metadata:
20   schema: 'metadata/Document/v1'
21   name: promjoin
22   storagePolicy: 'cleartext'
23   layeringDefinition:
24     abstract: false
25     layer: site
26   labels:
27     application: 'drydock'
28 data:
29   signaling: false
30   node_filter:
31     filter_set_type: 'union'
32     filter_set:
33       - filter_type: 'union'
34         node_names:
35           - 'aknode41'
36           - 'aknode42'
37   # TODO(alanmeadows) move what is global about this document - everything except nodenames to global
38   assets:
39     - path: /opt/promjoin.sh
40       type: file
41       permissions: '555'
42       # TODO(alanmeadows) You must replace the ip= parameter below with the appropriate MaaS network name of the network
43       # you should use to contact kubernetes in the case below, this is cab24_mgmt
44       location: promenade+http://promenade-api.ucp.svc.cluster.local/api/v1.0/join-scripts?design_ref={{ action.design_ref | urlencode }}&hostname={{ node.hostname }}&ip={{ node.network.calico.ip }}{% for k, v in node.labels.items() %}&labels.dynamic={{ k }}={{ v }}{% endfor %}
45       location_pipeline:
46         - template
47       data_pipeline:
48         - utf8_decode
49     - path: /lib/systemd/system/promjoin.service
50       type: unit
51       permissions: '600'
52       data: |-
53         W1VuaXRdCkRlc2NyaXB0aW9uPVByb21lbmFkZSBJbml0aWFsaXphdGlvbiBTZXJ2aWNlCkFmdGVy
54         PW5ldHdvcmstb25saW5lLnRhcmdldCBsb2NhbC1mcy50YXJnZXQKQ29uZGl0aW9uUGF0aEV4aXN0
55         cz0hL3Zhci9saWIvcHJvbS5kb25lCgpbU2VydmljZV0KVHlwZT1zaW1wbGUKRXhlY1N0YXJ0PS9v
56         cHQvcHJvbWpvaW4uc2gKCltJbnN0YWxsXQpXYW50ZWRCeT1tdWx0aS11c2VyLnRhcmdldAo=
57       data_pipeline:
58         - base64_decode
59         - utf8_decode
60 ...