Fix network and cloud data for ephemeral host

Change-Id: I954971d52e708ae5e89d99dfc926f6570570f94a
This commit is contained in:
Ruslan Aliev 2020-03-12 22:19:10 -05:00 committed by Kostiantyn Kalynovskyi
parent c1cce8f9c5
commit 0e9cd303cb
3 changed files with 16 additions and 6 deletions

View File

@ -7,7 +7,9 @@ metadata:
spec: spec:
online: true online: true
bootMACAddress: 00:3b:8b:0c:ec:8b bootMACAddress: 00:3b:8b:0c:ec:8b
networkData: "somedata: working data" networkData:
name: ephemeral-network-data
namespace: default
bmc: bmc:
address: redfish+http://localhost:8000/redfish/v1/Systems/air-ephemeral address: redfish+http://localhost:8000/redfish/v1/Systems/air-ephemeral
credentialsName: master-0-bmc-secret credentialsName: master-0-bmc-secret
@ -17,4 +19,4 @@ status:
# reprovisioned by the ephemeral baremetal operator. # reprovisioned by the ephemeral baremetal operator.
# when we have more flexible labeling system in place, we will not # when we have more flexible labeling system in place, we will not
# deliver this document to ephemeral cluster # deliver this document to ephemeral cluster
state: externally provisioned state: externally provisioned

View File

@ -6,7 +6,7 @@ metadata:
name: node1-bmc-secret name: node1-bmc-secret
type: Opaque type: Opaque
stringData: stringData:
userdata: | userData: |
ssh_pwauth: True ssh_pwauth: True
ssh_authorized_keys: ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4tV63Q3HSSM4V9EInw/pq7dawz8dnAn93Ki8UMLkXIEv+Vby2d+24IddHZig3Tshyn8of5TSLOL0ysOA2Hphh26khBOzG/SGv4cyShj5QU0/Y1ONepyRmkjmi/UmYKBq1xnUSVzqwzz+GUqyMuTAO1hV5xaD80JhKH0YyOghh/N+eYE2m14D5oNDV0l2Hhxix90Lcl7GUQybV3VMsXFJ19KAJYUCQolGn9kWOV3l35FI3vBD4g11OP+1/XHS/4+qBEdK9PNr6kxd0HsYjbqi6JGh9+SB3PvCtzDlIhz9SfmjI7hjOrdJ1vuPcG1gvJSA1x5bcsLJvy91kQx7z6adH root@ubuntu-1 - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4tV63Q3HSSM4V9EInw/pq7dawz8dnAn93Ki8UMLkXIEv+Vby2d+24IddHZig3Tshyn8of5TSLOL0ysOA2Hphh26khBOzG/SGv4cyShj5QU0/Y1ONepyRmkjmi/UmYKBq1xnUSVzqwzz+GUqyMuTAO1hV5xaD80JhKH0YyOghh/N+eYE2m14D5oNDV0l2Hhxix90Lcl7GUQybV3VMsXFJ19KAJYUCQolGn9kWOV3l35FI3vBD4g11OP+1/XHS/4+qBEdK9PNr6kxd0HsYjbqi6JGh9+SB3PvCtzDlIhz9SfmjI7hjOrdJ1vuPcG1gvJSA1x5bcsLJvy91kQx7z6adH root@ubuntu-1
@ -110,7 +110,15 @@ stringData:
- mount --bind /mnt/vda/var/lib/docker /var/lib/docker - mount --bind /mnt/vda/var/lib/docker /var/lib/docker
- mkdir -p /var/lib/docker-engine /mnt/vda/var/lib/docker-engine - mkdir -p /var/lib/docker-engine /mnt/vda/var/lib/docker-engine
- mount --bind /mnt/vda/var/lib/docker-engine /var/lib/docker-engine - mount --bind /mnt/vda/var/lib/docker-engine /var/lib/docker-engine
netconfig: | ---
apiVersion: v1
kind: Secret
metadata:
name: ephemeral-network-data
namespace: default
type: Opaque
stringData:
networkData: |
network: network:
version: 1 version: 1
config: config:

View File

@ -13,7 +13,7 @@ current-context: dummy_cluster
kind: Config kind: Config
manifests: manifests:
dummy_manifest: dummy_manifest:
primary-repository: primary primary-repository-name: primary
repositories: repositories:
primary: primary:
checkout: checkout:
@ -42,4 +42,4 @@ modules-config:
networkConfigFileName: network-config networkConfigFileName: network-config
outputMetadataFileName: output-metadata.yaml outputMetadataFileName: output-metadata.yaml
users: users:
dummy_user: {} dummy_user: {}