This file contains 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
FROM logan2211/docker-ci:ubuntu-xenial | |
# BIOS zip file to download | |
# ID 4058 is the 6218G-T41X 1.0b BIOS | |
ENV BIOS_URL "http://www.supermicro.com/support/resources/getfile.aspx?ID=4058" | |
ENV ISO_OUTPUT_DIR "/build" | |
ENV BUILD_SCRIPT_URL "https://gist.githubusercontent.com/Logan2211/0ebd320d0a5d37e71f88a9ef56a01719/raw/buildiso.sh" | |
RUN sudo apt-get update && \ |
This file contains 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
[zabbix_server] | |
test-1-zbx1 container_host_ip="{{ ['172.19.0.15', '172.19.0.20', '172.19.0.21'] }}" | |
test-1-zbx2 container_host_ip="{{ ['172.19.0.16'] }}" | |
test-1-zbx3 container_host_ip="{{ ['172.19.0.17'] }}" |
This file contains 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
#reduced set of apt packages and kernel modules for LSN hosts | |
openstack_host_kernel_modules: | |
- br_netfilter | |
- 8021q | |
- dm_snapshot | |
- ip6table_filter | |
- ip6_tables | |
- ip_tables | |
- ipt_MASQUERADE | |
- ipt_REJECT |
This file contains 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
root@infra1:~# openstack --os-cloud default network agent list | |
+--------------------------------------+-------------------------------+---------+-------------------+-------+-------+--------------+ | |
| ID | Agent Type | Host | Availability Zone | Alive | State | Binary | | |
+--------------------------------------+-------------------------------+---------+-------------------+-------+-------+--------------+ | |
| 71c00627-6b8a-4072-8e00-7fedce480f4f | Calico per-host agent (felix) | agents1 | None | True | UP | calico-felix | | |
| c37ba20d-cdbf-4333-ad49-6faf9a7f1e50 | Calico per-host agent (felix) | agents2 | None | True | UP | calico-felix | | |
+--------------------------------------+-------------------------------+---------+-------------------+-------+-------+--------------+ | |
root@infra1:~# openstack --os-cloud default network agent list --agent-type 'Calico per-host agent (felix)' | |
usage: openstack network agent list [-h] [-f {csv |
This file contains 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
--- | |
- name: Deploy iptables ferm to host | |
hosts: all | |
max_fail_percentage: 20 | |
serial: 10 | |
user: root | |
pre_tasks: | |
- name: Compile a list of firewall rules | |
set_fact: |
This file contains 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
$ ansible-playbook test.yml | |
PLAY [localhost] *************************************************************** | |
TASK [debug] ******************************************************************* | |
ok: [localhost] => { | |
"msg": [ | |
"test1", | |
"test2" | |
] | |
} |
This file contains 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
--- | |
# Excerpted from /etc/openstack_deploy/group_vars/kvm-compute_hosts.yml | |
# Copyright 2016, Logan Vig <logan2211@gmail.com> | |
# | |
# 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 | |
# |
This file contains 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
--- | |
# Copyright 2016, Logan Vig <logan2211@gmail.com> | |
# | |
# 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 |
This file contains 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 | |
# Based on https://mcwhirter.com.au/craige/blog/2014/Managing_KVM_Console_Logs_for_Nova/ and | |
# https://bitbucket.org/craigemcw/scripts/src/f55ddcd5f23b867c7d64505d5c037c14658d7775/OpenStack/manage_console_logs.sh?at=master&fileviewer=file-view-default | |
# | |
# In certain circumstances, KVM console logs in OpenStack can grow rapidly and | |
# easily fill your compute node disks. Run this script at a desirable interval | |
# to ensure that the logs are kept to a reasonable length. | |
set -eux |
This file contains 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
ceph_layouts: | |
4HDD: | |
devices: | |
- /dev/sda | |
- /dev/sdb | |
- /dev/sdc | |
- /dev/sdd | |
'1SSD+4HDD': | |
journal_size: 10000 | |
raw_multi_journal: true |