Skip to content

Commit

Permalink
1.0.18
Browse files Browse the repository at this point in the history
  • Loading branch information
thost96 authored Oct 26, 2023
1 parent f8f5ccd commit da16ad3
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 64 deletions.
4 changes: 0 additions & 4 deletions molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,21 @@
pre_tasks:
# Subscription Popup
- name: Create JS directory
ignore_errors: true
file:
path: /usr/share/javascript/proxmox-widget-toolkit
state: directory
- name: Create JS File
ignore_errors: true
file:
path: /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
state: touch
# All APT Tasks
- name: Update apt cache.
ignore_errors: true
apt:
update_cache: true
cache_valid_time: 600
when: ansible_os_family == 'Debian'
# InfluxDB / Graphite Metrics
- name: Create proxmox config directory
ignore_errors: true
file:
path: /etc/pve
state: directory
Expand Down
50 changes: 0 additions & 50 deletions tasks/cockpit.yml

This file was deleted.

70 changes: 60 additions & 10 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,19 @@

- name: Enable PVE no Subcription Repository
block:
- ansible.builtin.get_url:
- name: Add GPG Key
get_url:
url: https://enterprise.proxmox.com/debian/proxmox-release-{{ ansible_distribution_release }}.gpg
dest: /etc/apt/trusted.gpg.d/proxmox-release-{{ ansible_distribution_release }}.gpg
- apt_repository:
- name: Adding Repo
apt_repository:
repo: "deb http://download.proxmox.com/debian/pve {{ ansible_distribution_release }} pve-no-subscription"
filename: pve-no-subscription
state: present
when: "enable_no_subscription_repo | bool"

- name: Configure InfluxDB Metric Server
file:
copy:
dest: "/etc/pve/status.cfg"
content: |
influxdb:
Expand All @@ -36,7 +38,7 @@
when: "metrics_influx | bool"

- name: Configure Graphite Metric Server
file:
copy:
dest: "/etc/pve/status.cfg"
content: |
graphite:
Expand Down Expand Up @@ -70,6 +72,59 @@
name: lldpd.service
when: "tools_lldp | bool"

- name: Cockpit ZFS Tools Setup
block:
- name: Install required system packages
ansible.builtin.package:
name:
- curl
- samba
- git
state: present

- name: Disable Samba service
ansible.builtin.systemd:
state: stopped
enabled: false
name: smd.service

- name: Add Debian Backports
ansible.builtin.apt_repository:
repo: deb http://deb.debian.org/debian ${VERSION_CODENAME}-backports main
state: present

- name: Install Cockpit
ansible.builtin.apt:
name:
- cockpit
update_cache: true
cache_valid_time: 3600
state: present

- name: Enable Cockpit service
ansible.builtin.systemd:
state: started
enabled: true
name: cockpit.service

- name: Download Cockpit ZFS Manager
ansible.builtin.git:
repo: https://github.com/optimans/cockpit-zfs-manager.git
dest: /tmp/cockpit-zfs-manager

- name: Copy Cockpit ZFS Manager
ansible.builtin.copy:
src: /tmp/cockpit-zfs-manager/zfs
dest: /usr/share/cockpit

- name: Enable Cockpit Root Login
ansible.builtin.lineinfile:
path: /etc/cockpit/disallowed-users
line: '^root'
state: absent
notify: restart-cockpit
when: "tools_cockpit | bool"

# - name: Cleanup old Debian/PVE kernels
# block:
# - collect_kernel_info:
Expand All @@ -78,9 +133,4 @@
# name: "{{ ['linux-image-amd64'] + _pve_kernel.old_packages }}"
# state: absent
# purge: yes
# when: "system_kernel_clean | bool"

# - name: Cockpit ZFS Tools Setup
# include_tasks:
# cockpit.yaml
# when: "tools_cockpit | bool"
# when: "system_kernel_clean | bool"

0 comments on commit da16ad3

Please sign in to comment.