Skip to content
This repository was archived by the owner on Oct 30, 2019. It is now read-only.

Conversation

@jonnaladheeraj
Copy link
Contributor

Adding Factfile as a parameter when connected to puppet master it determines which modules needs to be installed depending on the facts file supplied as a parameter.

Copy link
Contributor

@sheenaajay sheenaajay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jonnaladheeraj .Thanks for the contribution.
Please incorporate the mInor comments.

@context[:use_factfile] = true
end
end
def determine_if_using_hiera
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a new line after the function determine_if_using_factfile

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added a new line after the function and made sure end is aligned with the function def

<% end %>

<% if use_factfile %>
COPY <%= factfile %> /etc/puppetlabs/facter/facts.d/custom_facts.txt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wondering if we should give an option to the user where to copy the files
/opt/puppetlabs/facter/facts.d/
/etc/puppetlabs/facter/facts.d/
/etc/facter/facts.d/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wanted all the facts to be at a location that are passed as a parameter. I can change it and ask user to enter the path for creation/checking facts.d folder and adding the facts file into it

@sheenaajay
Copy link
Contributor

@jonnaladheeraj Thanks for the prompt reply.I committed some fixes for the travis CI build error.Could you please rebase them your branch to verify if travis CI build is passing.

@sheenaajay
Copy link
Contributor

Travis erros are fixed and restarted the build succcesfully

@coveralls
Copy link

Coverage Status

Coverage decreased (-2.7%) to 92.857% when pulling ea0b52a on jonnaladheeraj:master into f253fc5 on puppetlabs:master.

@sheenaajay sheenaajay merged commit 027ff06 into puppetlabs-toy-chest:master Feb 7, 2017
@sheenaajay sheenaajay mentioned this pull request Feb 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants