-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from RedHatSatellite/rel130
Release 1.3.0
- Loading branch information
Showing
38 changed files
with
243 additions
and
115 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
--- | ||
skip_list: | ||
- role-name | ||
- line-length | ||
enable_list: | ||
- only-builtins |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
antsibull>=0.17.0 | ||
ansible-base>=2.10.0rc2 | ||
antsibull-docs>=1 | ||
ansible-core | ||
sphinx-rtd-theme | ||
git+https://github.com/felixfontein/ansible-basic-sphinx-ext | ||
recommonmark |
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 |
---|---|---|
|
@@ -6,12 +6,13 @@ authors: | |
- "Eric D. Helms <[email protected]>" | ||
- "Evgeni Golov <[email protected]>" | ||
- "Ewoud Kohl van Wijngaarden <[email protected]>" | ||
- "Jeremy Audet <[email protected]>" | ||
- "Jeffrey van Pelt <[email protected]>" | ||
- "Jeremy Audet <[email protected]>" | ||
- "Kyle Williams <[email protected]>" | ||
- "Matthias Dellweg <[email protected]>" | ||
- "Robert Rettig <[email protected]>" | ||
- "willtome <[email protected]>" | ||
version: "1.2.3" | ||
version: "1.3.0" | ||
license: | ||
- "GPL-3.0-or-later" | ||
tags: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../requirements.txt |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
flake8<4 | ||
yamllint | ||
ansible-lint<6 | ||
ansible-lint>=6.1.0 | ||
galaxy-importer |
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,24 @@ | ||
redhat.satellite_operations.backup | ||
============================ | ||
|
||
Sets up backup cronjob using `satellite_maintain`, creating one full backup each Sunday and incremental ones otherwise. | ||
|
||
Role Variables | ||
-------------- | ||
|
||
* `satellite_backup_destination`: Destination where to write the backups to, defaults to `/var/backup/foreman` | ||
* `satellite_backup_type`: Backup type, can be either `online` or `offline`, defaults to `online` | ||
* `satellite_backup_keep_full`: How many full (weekly) backups to keep, defaults to `2` | ||
|
||
None | ||
|
||
Example Playbooks | ||
----------------- | ||
|
||
```yaml | ||
--- | ||
- hosts: all | ||
gather_facts: true | ||
roles: | ||
- backup | ||
``` |
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,4 @@ | ||
--- | ||
satellite_backup_destination: /var/backup/foreman | ||
satellite_backup_type: online | ||
satellite_backup_keep_full: 2 |
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,5 @@ | ||
collections: | ||
- name: community.docker | ||
version: ">=3,<4" | ||
- name: community.general | ||
version: ">=2,<3" |
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,6 @@ | ||
--- | ||
- name: Converge | ||
hosts: all | ||
gather_facts: true | ||
roles: | ||
- backup |
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,22 @@ | ||
--- | ||
dependency: | ||
name: galaxy | ||
driver: | ||
name: ${DRIVER_NAME:-podman} | ||
platforms: | ||
- name: centos8 | ||
image: quay.io/centos/centos:stream8 | ||
command: /sbin/init | ||
tmpfs: | ||
- /run | ||
- /tmp:exec,mode=777 | ||
volumes: | ||
- /sys/fs/cgroup:/sys/fs/cgroup:ro | ||
provisioner: | ||
name: ansible | ||
verifier: | ||
name: ansible | ||
lint: | | ||
set -e | ||
yamllint -c ../../.yamllint . | ||
YAMLLINT_CONFIG_FILE=../../.yamllint ansible-lint . |
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,10 @@ | ||
--- | ||
- name: Prepare | ||
hosts: all | ||
gather_facts: true | ||
pre_tasks: | ||
- name: Install crontabs | ||
ansible.builtin.package: | ||
name: crontabs | ||
roles: | ||
- backup |
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: Verify | ||
hosts: all | ||
gather_facts: false | ||
tasks: | ||
- name: Get cronjob file | ||
ansible.builtin.slurp: | ||
path: /etc/cron.daily/foreman-backup | ||
register: backupcron | ||
|
||
- name: Check foreman cronjob content | ||
ansible.builtin.assert: | ||
that: | ||
- "'/var/backup/foreman' in crobjobcontent" | ||
vars: | ||
crobjobcontent: "{{ backupcron['content'] | b64decode }}" |
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,8 @@ | ||
--- | ||
- name: Configure backup cronjob | ||
ansible.builtin.template: | ||
src: templates/foreman-backup.sh.j2 | ||
dest: /etc/cron.daily/foreman-backup | ||
owner: root | ||
group: root | ||
mode: '0750' |
Oops, something went wrong.