Initial treasuremap/template for site_type ovsdpdk
[yaml_builds.git] / site_type / ovsdpdk / airship-treasuremap / site / airship-seaworthy / baremetal / bootactions / promjoin.yaml
1 ---
2 # This file defines a boot action which is responsible for fetching the node's
3 # promjoin script from the promenade API. This is the script responsible for
4 # installing kubernetes on the node and joining the kubernetes cluster.
5 # #GLOBAL-CANDIDATE#
6 schema: 'drydock/BootAction/v1'
7 metadata:
8   schema: 'metadata/Document/v1'
9   name: promjoin
10   storagePolicy: 'cleartext'
11   layeringDefinition:
12     abstract: false
13     layer: site
14   labels:
15     application: 'drydock'
16 data:
17   signaling: false
18   # TODO(alanmeadows) move what is global about this document
19   assets:
20     - path: /opt/promjoin.sh
21       type: file
22       permissions: '555'
23       # The ip= parameter must match the MaaS network name of the network used
24       # to contact kubernetes. With a standard, reference Airship deployment where
25       # L2 networks are shared between all racks, the network name (i.e. calico)
26       # should be correct.
27       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 %}
28       location_pipeline:
29         - template
30       data_pipeline:
31         - utf8_decode
32 ...