ansiblecore
Version information
This version is compatible with:
- Puppet Enterprise 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 2019.8.x
- Puppet >= 6.21.0 < 8.0.0
- , , , , , ,
Start using this module
Add this module to your Puppetfile:
mod 'hemantgangwar-ansiblecore', '1.0.0'
Learn more about managing modules with a PuppetfileDocumentation
ansiblecore
Welcome to ansiblecore. A module written to play along with Ansible, for more details on free content written by author on Ansible, please refer: (#https://learningtechnix.wordpress.com/category/automation/ansible/)
Table of Contents
Description
For those who are looking for a clean ansible installation in their environment. For this a preferable setup is RHEL / CentOS 7 based machines.
Here we do not need to care about keys as the module will itself populate auto generated keys on both Ansible master and target nodes.
Note: If on any node it found home of ansible anything other than /home/ansible, it will delete the user and recreate the user.
Setup
In this example code you will find numerous machines, where following are important:
- ldapmas.technix.com --> ANSIBLE MASTER
- master.lab.example.com --> ANSIBLE CLIENT
Usage
class { 'ansiblecore::master': }
class { 'ansiblecore::target': }
On Ansible controller node hiera file add below hiera code
ansiblecore::master::ansiblecore: 'ansible'
Similar puppet code
package { 'ansible':
name => 'ansible',
ensure => installed,
}
On ansible taret node add below hiera value
classes:
- ansiblecore::target