Can I install puppet modules through puppet manifest?

后端 未结 5 1538
迷失自我
迷失自我 2021-02-13 03:34

Primary goal is to add all puppet modules automatically, so that all dev-env\'s and prod-env could be started with one command. How can I install puppet modules through puppet m

5条回答
  •  南旧
    南旧 (楼主)
    2021-02-13 03:44

    We've been happily using librarian-puppet to sync all 3rd party modules, it supports setting the modules' locations and versions. So production and dev run the exact same code. The usage is one liner

    librarian-puppet install
    

    In other cases we have a shell script that runs puppet two times, one time a minimal module that is only responsible for fetching the required modules, and then the full blown puppet flow when all modules are available.

提交回复
热议问题