This commit is contained in:
Eric Meehan 2024-07-03 12:38:09 +00:00
parent 7bc2e86c68
commit 9a4bbb05a8
16 changed files with 142 additions and 0 deletions

View File

@ -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
View File

@ -0,0 +1,4 @@
---
# Group vars for alpha cluster
ipv4_subnet: 0
ipv6_subnet: a

View File

@ -0,0 +1,3 @@
---
# Group vars for Kubernetes control plane nodes
kubernetes_role: control_plane

3
group_vars/workers.yml Normal file
View File

@ -0,0 +1,3 @@
---
# Group vars for Kubernetes worker nodes
kubernetes_role: node

View File

@ -0,0 +1,3 @@
---
# Host vars for alpha-control-plane
os: debin

View File

@ -0,0 +1,3 @@
---
# Host vars for alpha-worker-0
os: debian

15
inventories/attlocal.yml Normal file
View 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

View 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

View File

@ -0,0 +1,2 @@
---
# defaults file for dump_debconf_database

View File

@ -0,0 +1,2 @@
---
# handlers file for dump_debconf_database

View 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.

View 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

View File

@ -0,0 +1,2 @@
localhost

View File

@ -0,0 +1,5 @@
---
- hosts: localhost
remote_user: root
roles:
- dump_debconf_database

View File

@ -0,0 +1,2 @@
---
# vars file for dump_debconf_database

8
site.yml Normal file
View File

@ -0,0 +1,8 @@
---
# Master playbook for eom.dev
- name: Initial OS configuration
hosts: all
become: true
roles:
- role: ericomeehan.dump-debconf-database
where: os == "debian"