v0.0.1
This commit is contained in:
parent
7bc2e86c68
commit
9a4bbb05a8
@ -1 +1,4 @@
|
|||||||
This repository contains ansible playbooks used to deploy the eom.dev network.
|
This repository contains ansible playbooks used to deploy the eom.dev network.
|
||||||
|
|
||||||
|
|
||||||
|
An ssh key needs to be manually copied to each host.
|
||||||
|
4
group_vars/alpha.yml
Normal file
4
group_vars/alpha.yml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
# Group vars for alpha cluster
|
||||||
|
ipv4_subnet: 0
|
||||||
|
ipv6_subnet: a
|
3
group_vars/control_plane.yml
Normal file
3
group_vars/control_plane.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
# Group vars for Kubernetes control plane nodes
|
||||||
|
kubernetes_role: control_plane
|
3
group_vars/workers.yml
Normal file
3
group_vars/workers.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
# Group vars for Kubernetes worker nodes
|
||||||
|
kubernetes_role: node
|
3
host_vars/alpha-control-plane.yml
Normal file
3
host_vars/alpha-control-plane.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
# Host vars for alpha-control-plane
|
||||||
|
os: debin
|
3
host_vars/alpha-worker-0.yml
Normal file
3
host_vars/alpha-worker-0.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
# Host vars for alpha-worker-0
|
||||||
|
os: debian
|
15
inventories/attlocal.yml
Normal file
15
inventories/attlocal.yml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
all:
|
||||||
|
children:
|
||||||
|
clusters:
|
||||||
|
children:
|
||||||
|
alpha:
|
||||||
|
children:
|
||||||
|
control_plane:
|
||||||
|
hosts:
|
||||||
|
alpha-control-plane:
|
||||||
|
ansible-host: 192.168.1.92
|
||||||
|
workers:
|
||||||
|
hosts:
|
||||||
|
alpha-worker-0:
|
||||||
|
ansible-host: 192.168.1.94
|
38
roles/ericomeehan.dump-debconf-database/README.md
Normal file
38
roles/ericomeehan.dump-debconf-database/README.md
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
Dump debconf database
|
||||||
|
=========
|
||||||
|
|
||||||
|
Dumps the debconf database after a fresh Debian installation.
|
||||||
|
|
||||||
|
Requirements
|
||||||
|
------------
|
||||||
|
|
||||||
|
None
|
||||||
|
|
||||||
|
Role Variables
|
||||||
|
--------------
|
||||||
|
|
||||||
|
None
|
||||||
|
|
||||||
|
Dependencies
|
||||||
|
------------
|
||||||
|
|
||||||
|
None
|
||||||
|
|
||||||
|
Example Playbook
|
||||||
|
----------------
|
||||||
|
|
||||||
|
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
|
||||||
|
|
||||||
|
- hosts: servers
|
||||||
|
roles:
|
||||||
|
- role: ericomeehan.dump-debconf-database
|
||||||
|
|
||||||
|
License
|
||||||
|
-------
|
||||||
|
|
||||||
|
BSD
|
||||||
|
|
||||||
|
Author Information
|
||||||
|
------------------
|
||||||
|
|
||||||
|
Eric O'Neill Meehan
|
@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
# defaults file for dump_debconf_database
|
@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
# handlers file for dump_debconf_database
|
34
roles/ericomeehan.dump-debconf-database/meta/main.yml
Normal file
34
roles/ericomeehan.dump-debconf-database/meta/main.yml
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
galaxy_info:
|
||||||
|
author: your name
|
||||||
|
description: your role description
|
||||||
|
company: your company (optional)
|
||||||
|
|
||||||
|
# If the issue tracker for your role is not on github, uncomment the
|
||||||
|
# next line and provide a value
|
||||||
|
# issue_tracker_url: http://example.com/issue/tracker
|
||||||
|
|
||||||
|
# Choose a valid license ID from https://spdx.org - some suggested licenses:
|
||||||
|
# - BSD-3-Clause (default)
|
||||||
|
# - MIT
|
||||||
|
# - GPL-2.0-or-later
|
||||||
|
# - GPL-3.0-only
|
||||||
|
# - Apache-2.0
|
||||||
|
# - CC-BY-4.0
|
||||||
|
license: license (GPL-2.0-or-later, MIT, etc)
|
||||||
|
|
||||||
|
min_ansible_version: 2.1
|
||||||
|
|
||||||
|
# If this a Container Enabled role, provide the minimum Ansible Container version.
|
||||||
|
# min_ansible_container_version:
|
||||||
|
|
||||||
|
galaxy_tags: []
|
||||||
|
# List tags for your role here, one per line. A tag is a keyword that describes
|
||||||
|
# and categorizes the role. Users find roles by searching for tags. Be sure to
|
||||||
|
# remove the '[]' above, if you add tags to this list.
|
||||||
|
#
|
||||||
|
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
|
||||||
|
# Maximum 20 tags per role.
|
||||||
|
|
||||||
|
dependencies: []
|
||||||
|
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
|
||||||
|
# if you add dependencies to this list.
|
15
roles/ericomeehan.dump-debconf-database/tasks/main.yml
Normal file
15
roles/ericomeehan.dump-debconf-database/tasks/main.yml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
# tasks file for dump_debconf_database
|
||||||
|
- name: Install debconf-utils
|
||||||
|
apt:
|
||||||
|
name: debconf-utils
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Create preseed file
|
||||||
|
command: echo "#_preseed_V1" > /root/preseed.txt
|
||||||
|
|
||||||
|
- name: Append installer's debconf database to the file
|
||||||
|
command: debconf-get-selections --installer >> /root/preseed.txt
|
||||||
|
|
||||||
|
- name: Append debconf database to the file
|
||||||
|
command: debconf-get-selections >> /root/preseed.txt
|
2
roles/ericomeehan.dump-debconf-database/tests/inventory
Normal file
2
roles/ericomeehan.dump-debconf-database/tests/inventory
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
localhost
|
||||||
|
|
5
roles/ericomeehan.dump-debconf-database/tests/test.yml
Normal file
5
roles/ericomeehan.dump-debconf-database/tests/test.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
- hosts: localhost
|
||||||
|
remote_user: root
|
||||||
|
roles:
|
||||||
|
- dump_debconf_database
|
2
roles/ericomeehan.dump-debconf-database/vars/main.yml
Normal file
2
roles/ericomeehan.dump-debconf-database/vars/main.yml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
# vars file for dump_debconf_database
|
Loading…
Reference in New Issue
Block a user