Created
April 23, 2020 20:39
-
-
Save sshnaidm/cd3a84bdb749288d0b03792287e3f9b6 to your computer and use it in GitHub Desktop.
Script for running standalone on CentOS 8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export IP=$(ip addr list eth0 |grep "inet " |cut -d' ' -f6|cut -d/ -f1) | |
export NETMASK=22 | |
export INTERFACE=eth1 | |
sudo ip r a 192.168.122.0/24 via 192.168.121.1 | |
# cleanup | |
rm -rf $HOME/containers-prepare-parameters.yaml $HOME/standalone_parameters.yaml | |
cat <<EOF > $HOME/containers-prepare-parameters.yaml | |
parameter_defaults: | |
ContainerImagePrepare: | |
- set: | |
ceph_alertmanager_image: alertmanager | |
ceph_alertmanager_namespace: 192.168.122.1:5000/prom | |
ceph_alertmanager_tag: v0.16.2 | |
ceph_grafana_image: grafana | |
ceph_grafana_namespace: 192.168.122.1:5000/grafana | |
ceph_grafana_tag: 5.2.4 | |
ceph_image: daemon | |
ceph_namespace: 192.168.122.1:5000/ceph | |
ceph_node_exporter_image: node-exporter | |
ceph_node_exporter_namespace: 192.168.122.1:5000/prom | |
ceph_node_exporter_tag: v0.17.0 | |
ceph_prometheus_image: prometheus | |
ceph_prometheus_namespace: 192.168.122.1:5000/prom | |
ceph_prometheus_tag: v2.7.2 | |
ceph_tag: v4.0.8-stable-4.0-nautilus-centos-7-x86_64 | |
name_prefix: centos-binary- | |
name_suffix: '' | |
namespace: 192.168.122.1:5000/tripleomaster | |
neutron_driver: ovn | |
rhel_containers: false | |
tag: current-tripleo | |
tag_from_label: rdo_version | |
EOF | |
cat <<EOF > $HOME/standalone_parameters.yaml | |
parameter_defaults: | |
CloudName: $IP | |
ControlPlaneStaticRoutes: [] | |
Debug: true | |
DeploymentUser: $USER | |
DnsServers: | |
- 1.1.1.1 | |
- 8.8.8.8 | |
DockerInsecureRegistryAddress: | |
- $IP:8787 | |
- 192.168.122.1:5000 | |
NeutronPublicInterface: $INTERFACE | |
# domain name used by the host | |
NeutronDnsDomain: localdomain | |
# re-use ctlplane bridge for public net, defined in the standalone | |
# net config (do not change unless you know what you're doing) | |
NeutronBridgeMappings: datacentre:br-ctlplane | |
NeutronPhysicalBridge: br-ctlplane | |
# enable to force metadata for public net | |
#NeutronEnableForceMetadata: true | |
StandaloneEnableRoutedNetworks: false | |
StandaloneHomeDir: $HOME | |
StandaloneLocalMtu: 1500 | |
# Needed if running in a VM, not needed if on baremetal | |
NovaComputeLibvirtType: qemu | |
EOF | |
sudo openstack tripleo deploy \ | |
--templates \ | |
--local-ip=$IP/$NETMASK \ | |
-e /usr/share/openstack-tripleo-heat-templates/environments/standalone/standalone-tripleo.yaml \ | |
-r /usr/share/openstack-tripleo-heat-templates/roles/Standalone.yaml \ | |
-e $HOME/containers-prepare-parameters.yaml \ | |
-e $HOME/standalone_parameters.yaml \ | |
--output-dir $HOME \ | |
--standalone |& tee ~/standalone.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment