Skip to content

Conversation

@philomory
Copy link
Contributor

This PR allows moving the puppet device configuration to an external JSON file; e.g. you can (optionally) specify the following in device.conf:

[mikrotik.example.com]
type mikrotik
url file:///etc/puppetlabs/puppet/devices/mikrotik.example.com.json

... and then in mikrotik.example.com.json include the following:

{
  "host": "10.1.1.1",
  "user": "puppet",
  "password": "MYSECRETPASSWORD",
  "use_ssl": true
}

The supported options are, everything that MTik::Connection.new() accepts, plus include_ec2_facts. Setting include_ec2_facts to true will instruct the module to gather a limited amount of ec2_metadata facts during fact collection via /tool/fetch of http://169.254.169.254/latest/meta-data/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant