2 ##############################################################################
3 # Copyright (c) 2018 AT&T Intellectual Property. All rights reserved. #
5 # Licensed under the Apache License, Version 2.0 (the "License"); you may #
6 # not use this file except in compliance with the License. #
8 # You may obtain a copy of the License at #
9 # http://www.apache.org/licenses/LICENSE-2.0 #
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 ##############################################################################
18 schema: 'drydock/BootAction/v1'
20 schema: 'metadata/Document/v1'
22 storagePolicy: 'cleartext'
27 application: 'drydock'
31 filter_set_type: 'union'
33 - filter_type: 'union'
35 {% for server in yaml.masters %}
38 {% if 'workers' in yaml %}{% for server in yaml.workers %}
40 {% endfor %}{% endif %}
41 {% raw %} # TODO(alanmeadows) move what is global about this document - everything except nodenames to global
43 - path: /opt/promjoin.sh
46 # TODO(alanmeadows) You must replace the ip= parameter below with the appropriate MaaS network name of the network
47 # you should use to contact kubernetes in the case below, this is cab24_mgmt
48 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 %}
53 - path: /lib/systemd/system/promjoin.service
57 W1VuaXRdCkRlc2NyaXB0aW9uPVByb21lbmFkZSBJbml0aWFsaXphdGlvbiBTZXJ2aWNlCkFmdGVy
58 PW5ldHdvcmstb25saW5lLnRhcmdldCBsb2NhbC1mcy50YXJnZXQKQ29uZGl0aW9uUGF0aEV4aXN0
59 cz0hL3Zhci9saWIvcHJvbS5kb25lCgpbU2VydmljZV0KVHlwZT1zaW1wbGUKRXhlY1N0YXJ0PS9v
60 cHQvcHJvbWpvaW4uc2gKCltJbnN0YWxsXQpXYW50ZWRCeT1tdWx0aS11c2VyLnRhcmdldAo=