First, create a GPT partition table.
- boot partition, label: EFI, flags: boot + ESP; size: 1GB, format to FAT32;
- root partition (label: root), must same size on all devices!
- swap partition.
| # Ensure the openvswitch kernel module is loaded | |
| openstack_host_specific_kernel_modules: | |
| - name: "openvswitch" | |
| pattern: "CONFIG_OPENVSWITCH=" | |
| group: "network_hosts" | |
| ### Neutron specific config | |
| neutron_plugin_type: ml2.ovs | |
| neutron_ml2_drivers_type: "flat,vlan" |
| --- | |
| cidr_networks: | |
| container: 172.29.236.0/22 | |
| tunnel: 172.29.240.0/22 | |
| storage: 172.29.244.0/22 | |
| used_ips: | |
| - "172.29.236.1,172.29.236.255" | |
| - "172.29.240.1,172.29.240.255" | |
| - "172.29.244.1,172.29.244.255" |
| # OpenStack Management network bridge | |
| auto br-mgmt | |
| iface br-mgmt inet static | |
| bridge_stp off | |
| bridge_waitport 0 | |
| bridge_fd 0 | |
| bridge_ports eth0 | |
| address MANAGEMENT_NETWORK_IP | |
| netmask 255.255.255.0 | |
| gateway 192.168.1.1 |
| - name: Install wget package (Debian based) | |
| action: apt pkg='wget' state=installed | |
| only_if: "'$ansible_pkg_mgr' == 'apt'" | |
| - name: Install wget package (RedHat based) | |
| action: yum name='wget' state=installed | |
| only_if: "'$ansible_pkg_mgr' == 'yum'" |
| # Ubuntu Server automated installation | |
| # by Scott Lowe (scott.lowe@scottlowe.org) | |
| d-i debian-installer/locale string en_US | |
| d-i console-setup/ask_detect boolean false | |
| d-i keyboard-configuration/layoutcode string us | |
| d-i netcfg/choose_interface select eth0 | |
| d-i netcfg/get_hostname string hostname | |
| d-i netcfg/get_domain string domain.com | |
| d-i netcfg/wireless_wep string |
| --- | |
| mons_hosts: | |
| infra01: | |
| ip: 192.168.88.100 | |
| affinity: | |
| ceph_mon_container: 3 | |
| osds_hosts: | |
| object01: | |
| ip: 192.168.88.102 |
| # Use LVM for partitioning | |
| d-i partman-auto/method string lvm | |
| # If one of the disks that are going to be automatically partitioned | |
| # contains an old LVM configuration, the user will normally receive a | |
| # warning. Preseed this away | |
| d-i partman-lvm/device_remove_lvm boolean true | |
| # And the same goes for the confirmation to write the lvm partitions. | |
| d-i partman-lvm/confirm boolean true |
| # DL the src code from http://www.kernel.org/pub/linux/utils/net/iproute2/ | |
| # Ubuntu 4.0.0-1: | |
| apt-get install -y libdb4o-cil-dev libdb-dev bison flex build-essential gcc module-init-tools | |
| wget https://www.kernel.org/pub/linux/utils/net/iproute2/iproute2-4.1.1.tar.xz | |
| tar xvf iproute2-4.1.1.tar.xz | |
| cd iproute2-4.1.1 | |
| make | |
| # This will build the new `ip` binary in the ip directory. | |
| # Next backup your old ip binary if you want: |
| ####### Install Grafana + InFluxDB | |
| lxc-create -t download -n grafana -- -d ubuntu -r trusty -a amd64 | |
| cat > /var/lib/lxc/grafana/eth1.ini <<EOF | |
| # Create a veth pair within the container | |
| lxc.network.type = veth | |
| # Network device within the container | |
| lxc.network.name = eth1 | |
| # Name the veth after the container | |
| lxc.network.veth.pair = grafa_eth1 |