Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nosmoht/ansible-role-foreman

Ansible role to configure Foreman and manage hosts
https://github.com/nosmoht/ansible-role-foreman

Last synced: 21 days ago
JSON representation

Ansible role to configure Foreman and manage hosts

Awesome Lists containing this project

README

        

ansible-role-foreman
=========

# Description
Ansible role to manage Foreman resources. This role does not install Foreman!

The following resources can be managed (currently only created or deleted).
- Architectures
- Compute Attributes
- Compute Profiles
- Compute Resources
- Config Templates
- Domains
- Environments
- Hostgroups
- Hosts
- Locations
- Media
- Operatingsystems
- Organizations (requires Katello)
- Roles
- Smart Proxies
- Subnets
- Users

# Requirements
Ansible is required as well as the [Ansible library] to manage Foreman resources.

# Role Variables

| Name | Description | Default value |
| :------ | :------ | :----- |
| foreman_host | Hostname or IP of Foreman host | 127.0.0.1 |
| foreman_port | Port used to connect to Foreman | 443 |
| foreman_user | User to authenticate | admin |
| foreman_pass | Password | topsecret |
| foreman_debug | Boolean to define if results of each task should be printed | False |
| foreman_default_domain | Default Domain of a host if not specified | None |
| foreman_default_environment | Default Environment of a host if not specified | None |
| foreman_default_location | Default Location of a host if not specified | None |
| foreman_default_hostgroup | Default Hostgroup of a host if not specified | None |
| foreman_default_operatingsystem | Default Operatingsystem of a host if not specified | None |
| foreman_default_organization | Default Organization of a host if not specified | None |
| foreman_default_compute_profile | Default Compute Profile of a host if not specified | None |
| foreman_default_compute_resource | Default Compute Resource of a host if not specified | None |

# Dependencies

No other roles needed

# Example Playbooks
```yaml
- hosts: foreman
roles:
- role: foreman
```
# License

BSD

# Author Information
[Thomas Krahn]

[Thomas Krahn]: mailto:[email protected]

[Ansible library]: https://github.com/Nosmoht/ansible-library-foreman