Hiera manifest development on workstation

39 views
Skip to first unread message

evan....@noaa.gov

unread,
Mar 8, 2016, 4:13:43 PM3/8/16
to Puppet Users
Well, I have hiera running an working and beginning to handle my code. But I have run in to the problem of developing on on my workstation, but having to upload to the puppet server to test when using hiera. If I use normal manifests everything can be coded and test on the workstation with "puppet apply". How can this functionality be setup with Hiera. (It may be in the puppet docs, but I am not finding it in my hunt)

jcbollinger

unread,
Mar 9, 2016, 9:03:20 AM3/9/16
to Puppet Users


On Tuesday, March 8, 2016 at 3:13:43 PM UTC-6, evan....@noaa.gov wrote:
Well, I have hiera running an working and beginning to handle my code. But I have run in to the problem of developing on on my workstation, but having to upload to the puppet server to test when using hiera. If I use normal manifests everything can be coded and test on the workstation with "puppet apply". How can this functionality be setup with Hiera. (It may be in the puppet docs, but I am not finding it in my hunt)


The 'puppet apply' command will consult local Hiera data and configuration.  To the extent that one can ever use 'puppet apply' to test manifests intended for use in a master / agent setup, those manifests relying on external data is not a particular problem.  You just have to have the appropriate data and configuration on the local machine.  Inasmuch as you may want to feed test data to the catalog builder instead of production data, HIera can even facilitate the process.


John

Reply all
Reply to author
Forward
0 new messages