add_hosts_entry

contributions requested
pdk
tasks
Provides a task to add hosts file entries to remote hosts

1,695 downloads

1,585 latest version

4.6 quality score

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.1.1 (latest)
  • 0.1.0
released Oct 8th 2019
This version is compatible with:
  • Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x
  • Puppet >= 6.0.0 < 7.0.0
  • CentOS
    ,
    OracleLinux
    ,
    RedHat
    ,
    Scientific
    ,
    Debian
    ,
    Ubuntu
    ,
    windows
    ,
    Fedora
    ,
    Darwin
    ,
    SLES
    ,
    Solaris
Tasks:
  • hosts_update

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'martyewings-add_hosts_entry', '0.1.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add martyewings-add_hosts_entry
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install martyewings-add_hosts_entry --version 0.1.1

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

martyewings/add_hosts_entry — version 0.1.1 Oct 8th 2019

add_hosts_entry

This Module Provides a Task that allows you to set hostfile entries in remote Windows and Linux Hosts.

This is Useful when adding nodes to Management In Puppet enterprise, that do not have DNS configured and can not resolve the Master FQDN. This task can be run prior to the the task pe_bootstrap Via Bolt and targetted at SSH or WINRM inventory to add the master ip and fqdn to the local hosts file

Table of Contents

  1. Description

Description

This Module Provides a Task that allows you to set hostfile entries in remote Windows and Linux Hosts.

This is Useful when adding nodes to Management In Puppet enterprise, that do not have DNS configured and can not resolve the Master FQDN. This task can be run prior to the the task pe_bootstrap Via Bolt and targetted at SSH or WINRM inventory to add the master ip and fqdn to the local hosts file

Beginning with add_hosts_entry

This Task has two mandatory parameters:

m_ip - the Ipaddress you wish to add to the target hosts file

m_host - the FQDN associated with the ip in m_ip

In an example where m_ip = 10.10.10.1 and m_host = master.puppet.com

the following would be printed on a new line in your hosts file:

"10.10.10.1 master.puppet.com"