Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advanced config #11

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

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