+++ /dev/null
----
-##############################################################################
-# Copyright (c) 2018 AT&T Intellectual Property. All rights reserved. #
-# #
-# Licensed under the Apache License, Version 2.0 (the "License"); you may #
-# not use this file except in compliance with the License. #
-# #
-# You may obtain a copy of the License at #
-# http://www.apache.org/licenses/LICENSE-2.0 #
-# #
-# Unless required by applicable law or agreed to in writing, software #
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
-# See the License for the specific language governing permissions and #
-# limitations under the License. #
-##############################################################################
-
-schema: deckhand/Passphrase/v1
-metadata:
- schema: metadata/Document/v1
- name: ipmi_admin_password
- layeringDefinition:
- abstract: false
- layer: site
- storagePolicy: cleartext
-data: calvin
-...
- ucp-control-plane=enabled
- maas-control-plane=enabled
- ceph-osd-bootstrap=enabled
-# - openstack-libvirt=kernel
-# - openvswitch=enabled
-# - openstack-control-plane=enabled
-# - openstack-nova-compute=enabled
+ - openstack-libvirt=kernel
+ - openvswitch=enabled
+ - openstack-control-plane=enabled
+ - openstack-nova-compute=enabled
...
openstack-nova-compute: enabled
openvswitch: enabled
openstack-libvirt: kernel
- sriov: enabled
beta.kubernetes.io/fluentd-ds-ready: 'true'
...
openstack-libvirt: kernel
openvswitch: enabled
openstack-nova-compute: enabled
- sriov: enabled
ucp-barbican: enabled
ceph-bootstrap: enabled
ceph-mon: enabled
elasticsearch-data: enabled
postgresql: enabled
kube-ingress: enabled
- sriov: enabled
beta.kubernetes.io/fluentd-ds-ready: 'true'
...
openstack-nova-compute: enabled
openvswitch: enabled
openstack-libvirt: kernel
- sriov: enabled
beta.kubernetes.io/fluentd-ds-ready: 'true'
...
openstack-libvirt: kernel
openvswitch: enabled
openstack-nova-compute: enabled
- sriov: enabled
ucp-barbican: enabled
ceph-bootstrap: enabled
ceph-mon: enabled
elasticsearch-data: enabled
postgresql: enabled
kube-ingress: enabled
- sriov: enabled
beta.kubernetes.io/fluentd-ds-ready: 'true'
...
# re-generate prom config
set -x
+TIMESTAMP=$(date +"%Y%m%d%H%M")
+echo "logging to /var/log/yaml_builds/1prom-gen_$TIMESTAMP.log"
+exec > /var/log/yaml_builds/1prom-gen_$TIMESTAMP.log
+exec 2>&1
source $(dirname $0)/setenv.sh
# limitations under the License. #
##############################################################################
+set -x
+TIMESTAMP=$(date +"%Y%m%d%H%M")
+echo "Logging to /var/log/yaml_builds/2genesis_$TIMESTAMP.log"
+exec > /var/log/yaml_builds/2genesis_$TIMESTAMP.log
+exec 2>&1
source $(dirname $0)/setenv.sh
source $(dirname $0)/env_$SITE.sh
cd $YAML_BUILDS
-# Update BIOS Setting
-python $YAML_BUILDS/scripts/update_bios_settings.py $SITE.yaml
# Install OS on Genesis
python $YAML_BUILDS/scripts/jcopy.py $SITE.yaml $YAML_BUILDS/tools/j2/serverrc.j2 $YAML_BUILDS/tools/"$GENESIS_NAME"rc
/opt/akraino/redfish/install_server_os.sh --rc /opt/akraino/yaml_builds/tools/"$GENESIS_NAME"rc --skip-confirm
scp $YAML_BUILDS/tars/promenade-bundle-$SITE.tar $GENESIS_HOST:/tmp/
ssh $GENESIS_HOST << EOF
+ # TODO avoid following hard coding$
+ route add -net 192.168.41.0/24 gw 192.168.2.1 bond0.41
mkdir -p /root/akraino
cp /tmp/promenade-bundle-$SITE.tar /root/akraino/
cd /root/akraino/
tar -xmf promenade-bundle-$SITE.tar
EOF
+# Update BIOS Setting
+python $YAML_BUILDS/scripts/update_bios_settings.py $SITE.yaml
# template xml file to set bios and raid configuration settings
SRV_BIOS_TEMPLATE=dell_r740_g14_uefi_base.xml.template
SRV_BOOT_TEMPLATE=dell_r740_g14_uefi_httpboot.xml.template
-SRV_HTTP_BOOT_DEV=NIC.Slot.7-1-1
+SRV_HTTP_BOOT_DEV=NIC.Slot.2-1-1
# tempalte to run to configure OS after first boot
# current options are: firstboot.sh.template, firstboot-genesis.sh.tempate or firstboot-airship-iab.sh.template
SRV_STORAGE_VLAN={{yaml.networks.storage.vlan}}
SRV_CALICO_VLAN={{yaml.networks.ksn.vlan}}
SRV_NEUTRON_VLAN={{yaml.networks.neutron.vlan}}
+SRV_PXE_INF={{yaml.networks.pxe.interface}}
# basic network information for dhcp config and final server network settings
SRV_MTU=9000
SRV_STORAGE_IP={{yaml.genesis.storage}}
SRV_CALICO_IP={{yaml.genesis.ksn}}
SRV_NEUTRON_IP={{yaml.genesis.neutron}}
+SRV_PXE_IP={{yaml.genesis.pxe}}
SRV_SUBNET={{yaml.networks.host.subnet}}
SRV_NETMASK={{yaml.networks.host.netmask}}
SRV_GATEWAY={{yaml.networks.host.routes.gateway}}
# network bond information
SRV_BOND={{yaml.networks.primary}}
{% for slave in yaml.networks.slaves %}
-SRV_SLAVE{{loop.index}}={{slave.name}}
+SRV_SLAVE{{loop.index}}={{slave.name}}
{% endfor %}