-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Refactor] Rework Packer Playbook (#197)
* rebase container.ops under roles root dir * patch(playbook): updated docker.ops * feat(playbook): added containerd-rootless.ops * feat(playbook): added proxmox.packer.vm.ops role * patch(playbook): updated apt.ops roles * feat(packer/playbook): added var-files * refactor(packer/playbook): removed roles from bootstrap playbook dir * feat(playbook): added minio playbooks * patch(playbook): updated apt.ops default vars * refactor: tune playbook definitions * refactor: removed ubuntu-2204-server config refactor: remove config * fix-up(playbook/apt.ops): fixed conflict vars * refactor: rename maintenance vars to key vars * feat(packer): used custom ansible role path * refactor: only leave ubuntu-2204.json as standard config * patch: updated bakery list * refactor: rename minio packer template * patch: added user to default admin group * patch(packer/playbook): adapt new role referencing
- Loading branch information
Showing
70 changed files
with
166 additions
and
406 deletions.
There are no files selected for viewing
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
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
1 change: 0 additions & 1 deletion
1
ansible-playbooks/roles/apt.ops/install-packages.ops/tasks/main.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
--- | ||
- include_tasks: info.yml | ||
- include_tasks: install.yml | ||
- include_tasks: verify.yml |
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
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
File renamed without changes.
1 change: 1 addition & 0 deletions
1
...ops/update.ops/tasks/dist-apt-upgrade.yml → ...ops/update.ops/tasks/apt-dist-upgrade.yml
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
31 changes: 31 additions & 0 deletions
31
ansible-playbooks/roles/apt.ops/update.ops/tasks/apt-upgrade.yml
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
5 changes: 0 additions & 5 deletions
5
ansible-playbooks/roles/apt.ops/update.ops/tasks/dist-apt-upgrade.yml
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
# dist upgrade | ||
# normal upgrade | ||
- include_tasks: apt-upgrade.yml | ||
when: not dist_upgrade | ||
# normal upgrade | ||
# dist upgrade | ||
- include_tasks: disk-apt-upgrade.yml | ||
when: dist_upgrade |
14 changes: 0 additions & 14 deletions
14
ansible-playbooks/roles/container.ops/docker.ops/tasks/docker-compose-install.yml
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
ansible-playbooks/roles/container.ops/docker.ops/tasks/docker-install.yml
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 16 additions & 0 deletions
16
ansible-playbooks/roles/docker.ops/tasks/docker-compose-install.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
- name: Check if docker-compose is installed | ||
stat: | ||
path: "/usr/local/bin/docker-compose" | ||
register: is_compose_installed | ||
become: yes | ||
|
||
- name: Install docker-compose | ||
when: "not is_compose_installed.stat.exists" | ||
get_url: | ||
url: "https://github.com/docker/compose/releases/download/{{ compose_version }}/docker-compose-Linux-x86_64" | ||
dest: /usr/local/bin/docker-compose | ||
owner: root | ||
group: root | ||
mode: +x | ||
become: yes |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,21 @@ | ||
--- | ||
# Bake cn-ubuntu-2204-server | ||
|
||
- name: "Bake proxmox cn ubuntu 22.04 server" | ||
- name: "Bake proxmox cn ubuntu 22.04.1 server" | ||
hosts: localhost | ||
become: yes | ||
|
||
vars_files: | ||
- ./vars/apt.yml | ||
- ./vars/maintenance.yml | ||
- ./vars/keys.yml | ||
|
||
roles: | ||
- role: ./roles/apt.ops/set-sources.ops/ | ||
- role: roles/apt.ops/set-sources.ops/ | ||
vars: | ||
release: "jammy" | ||
- role: ./roles/apt.ops/install-packages.ops/ | ||
- role: roles/apt.ops/install-packages.ops/ | ||
vars: | ||
extra_packages: | ||
- neofetch | ||
|
||
- role: ./roles/maintenance.ops/key.ops/ | ||
|
||
- role: ./roles/proxmox.bootstrap/ | ||
- role: roles/maintenance.ops/key.ops/ | ||
- role: roles/proxmox.packer.vm.ops/bootstrap.ops/ |
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
Oops, something went wrong.