0

I have to automate puppet 4 administration. According to puppet 4 documentation there are major changes like * introduce puppetserver * Ruby / Rack puppetmaster services are deprecated and will be removed from puppet 5 onwards.

My query is how do i administer my puppetserver on Puppet 4 with scripts? would like to do things like :

  • add/remove a class
  • add/list a parameter to a class
  • create/list groups and add node to it

Edit:

for instance consider these two use case:

  • how to add a class, edit class param to a node
  • list classes assigned to a node
vivekIndia
  • 138
  • 2
  • 11
  • 1
    This question is far, far too broad to answer. – John Bollinger Sep 15 '16 at 17:24
  • hi @JohnBollinger for instance if I would like to classify a node/class to a group I am using Classifier REST api.. Is there a command line alternative for it?? – vivekIndia Sep 16 '16 at 09:56
  • John is completely correct. There are several pieces of software to do these things, including Puppet Enterprise itself. If you want to do scripts, then you should write them and ask for help if you get stuck. As it is, this question will probably be flagged. – Matthew Schuchard Sep 16 '16 at 12:33
  • @vivekIndia, if the question is simply how to use the REST API from the command line then you should say so, and apply appropriate tags. As far as that goes, however, REST is HTTP-based, so I would look into a command-line HTTP client such as `curl` or `wget`. – John Bollinger Sep 16 '16 at 15:29
  • @JohnBollinger basically i wanted to know a way to interact with puppet server from command line as an alternative to REST api. for instance in puppet 3 we used Rake but it does not seem to work on puppet 4 now. – vivekIndia Sep 19 '16 at 04:07
  • I disagree with the earlier responses to this question. The user is correct when puppet makes such a major change and publishes nothing as tools to use with the new API, they've not only made life difficult for end users, but have further released control of the market space. The docs for the API are not IMO good enough. Is it that difficult to write your own tools? no, but for the price of a support contract one shouldn't have to. – jeski Aug 07 '17 at 15:57

0 Answers0