https://github.com/loxda/foreman-app
Ansible role to deploy foreman (theforeman.org)
https://github.com/loxda/foreman-app
ansible ansible-role foreman foreman-plugins
Last synced: about 1 month ago
JSON representation
Ansible role to deploy foreman (theforeman.org)
- Host: GitHub
- URL: https://github.com/loxda/foreman-app
- Owner: LOXDA
- Created: 2023-08-09T07:10:32.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-01T19:49:43.000Z (over 1 year ago)
- Last Synced: 2025-11-01T06:09:04.894Z (7 months ago)
- Topics: ansible, ansible-role, foreman, foreman-plugins
- Language: Shell
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ansible-role-foreman-app
=========
Ansible role to deploy foreman app (or All-in-One) (theforeman.org)
Requirements
------------
It is designed to be include as a submodule to a project with its siblings :
* `ansible-role-foreman-db`
* `ansible-role-foreman-puppet`
* `ansible-role-foreman-proxy`
* `ansible-role-foreman-app` (this one)
* `ansible-role-foreman-custom`
`ansible-role-mirror` should help you get started with mirroring needed repositories.
Role Variables
--------------
The role needs some vars (default/main.yml)
The vars are self-explanatory, to look for answer one could use : foreman-installer --help
All vars are combined in `tasks/Setup_Options.yml` ( -vv is your friend )
Example Playbook
----------------
```
- hosts: tfm_app
gather_facts: true
roles:
- role: foreman-app
```
```
# fetch oauth_consumer_* info
- hosts: "{{ groups['tfm_app'][0] }}"
gather_facts: true
tasks:
- name: Fetch settings.yaml
slurp:
src: /etc/foreman/settings.yaml
register: settingsyaml
- name: Collect oauth_consumer_key
set_fact:
oauth_consumer_key: "{{ settingsyaml['content'] | b64decode | regex_findall(':oauth_consumer_key: (.+)') | first }}"
- name: Collect oauth_consumer_secret
set_fact:
oauth_consumer_secret: "{{ settingsyaml['content'] | b64decode | regex_findall(':oauth_consumer_secret: (.+)') | first }}"
```
License
-------
CC-BY-4.0
Author Information
------------------
Thomas Basset -- hobbyist sysadm