theforeman / theforeman.foreman / 4.0.0 / module / puppet_environment Manage Puppet Environments | "added in version" 1.0.0 of theforeman.foreman" Authors: Bernhard Suttner (@_sbernhard) ATIX AG, Christoffer Reijer (@ephracis) Basalt ABtheforeman.foreman.puppet_environment (4.0.0) — module
Install with ansible-galaxy collection install theforeman.foreman:==4.0.0
collections: - name: theforeman.foreman version: 4.0.0
Create, update, and delete Puppet Environments
- name: create new environment theforeman.foreman.puppet_environment: name: "testing" locations: - "Munich" organizations: - "ACME" server_url: "https://foreman.example.com" username: "admin" password: "changeme" state: present
name: description: The full environment name required: true type: str state: choices: - present - absent default: present description: - State of the entity type: str password: description: - Password of the user accessing the Foreman server. - If the value is not specified in the task, the value of environment variable C(FOREMAN_PASSWORD) will be used instead. required: true type: str username: description: - Username accessing the Foreman server. - If the value is not specified in the task, the value of environment variable C(FOREMAN_USERNAME) will be used instead. required: true type: str locations: description: List of locations the entity should be assigned to elements: str type: list server_url: description: - URL of the Foreman server. - If the value is not specified in the task, the value of environment variable C(FOREMAN_SERVER_URL) will be used instead. required: true type: str organizations: description: List of organizations the entity should be assigned to elements: str type: list validate_certs: default: true description: - Whether or not to verify the TLS certificates of the Foreman server. - If the value is not specified in the task, the value of environment variable C(FOREMAN_VALIDATE_CERTS) will be used instead. type: bool
entity: contains: puppet_environments: description: List of puppet environments. elements: dict type: list description: Final state of the affected entities grouped by their type. returned: success type: dict