Add new control
command for creating control repository
#1026
Replies: 14 comments 7 replies
-
From @cdenneen on October 25, 2017 16:28 @bittner except for the metadata.json check the validation will work on existing control repo so far that I can tell. |
Beta Was this translation helpful? Give feedback.
-
From @bittner on October 25, 2017 22:36 The The Not sure how the |
Beta Was this translation helpful? Give feedback.
-
From @ardrigh on May 3, 2018 4:31 I was talking with my team about adopting PDK, and the files PDK adds when it converts modules, so that it can run the tests and validation. Currently our control repo has 40+ internal Puppet modules, and converting them all with PDK would potentially add a huge number of duplicate files (Gemfile etc). It would be good to know if support for testing across control repos is still on the development plan. I am hopeful we will eventually be able migrate our TravisCI setup to test our control repo solely using simple PDK commands |
Beta Was this translation helpful? Give feedback.
-
From @ardrigh on May 3, 2018 5:58 Additional question, has any thought been given to integrating the onceover gem into PDK for control repo testing? |
Beta Was this translation helpful? Give feedback.
-
From @Nekototori on May 8, 2018 18:2 I'd second onceover. PDK is to modules as onceover is to control repos (as it stands today). |
Beta Was this translation helpful? Give feedback.
-
Just as a comment on development of an RFC on this type of feature... It would be good if a This requires work on support for testing of control repos, so it's a complicated request. But looking it from a greenfields user perspective, the starting point for a new site should hopefully be defining a role and some profiles, and have instant feedback that something is working because a test passed successfully. |
Beta Was this translation helpful? Give feedback.
-
Language comment: the term "control" by itself does not have meaning. It's unfortunate, but the compound noun for the set of content and structure we're talking about creating is control-repo. If we're gonna rename it ...let's just say we can do WAY better than "control". If we're gonna call it what everybody calls it today though, we should use the full compound noun. What we should not do is truncate the existing compound noun. Doing that doesn't give us any benefit and it will likely cause confusion. If we stick with this name the CLI should be:
|
Beta Was this translation helpful? Give feedback.
-
Is anyone still working on this? |
Beta Was this translation helpful? Give feedback.
-
Yes! The very first control-repo related bits have landed recently (#826) and we have been discussing this some at our bi-weekly public planning meetings. There will be a more formal RFC for things soon, in the meantime you can see and comment on our working doc here: https://docs.google.com/document/d/1oNRjTvkkNSzuESlTazReOdYNgcdXo1Y-vV-LrA72-Cs/edit?usp=sharing |
Beta Was this translation helpful? Give feedback.
-
Any more progress to report on this topic? I had an internal education and hands-on practicing with Puppet's PDK at our office yesterday, and I would have loved to show some related capabilities of PDK. You probably can tell the rest of the story yourselves... 🙄 The feature descriptions in the linked Google doc are intriguing. I'd really love to see them hit the stage soon. 🙏 |
Beta Was this translation helpful? Give feedback.
-
Think sub-task of this will be #1018 |
Beta Was this translation helpful? Give feedback.
-
I have just added puppetlabs/pdk-templates#425 My workflow is to always clone the puppetlabs/control-repo then run But there are some gotchas with this setup. Anything under site-modules doesn't get checked and adding new roles and profiles is still manual since |
Beta Was this translation helpful? Give feedback.
-
@logicminds I still like the idea of |
Beta Was this translation helpful? Give feedback.
-
If the word This would follow the general idea of having a separate Again, thinking about this from a greenfields perspective for new users, and not copying existing opinionated defaults. IMO, any new user setting up Puppet for the first time should be able to use PDK the same way an existing module developer would. This document refers to I am sure other people have used different names for the same thing. |
Beta Was this translation helpful? Give feedback.
-
From @bittner on October 24, 2017 14:16
PDK should support creating and extending a control-repository, which is enabled for validation and testing using PDK (just like the modules created by PDK).
Obsoletes #289 and #332 when implemented.
See also: puppetlabs/control-repo#52
Proposed Solution
Ideally,
pdk new control
command should generate a control-repo setup that is equivalent to the proposed Puppet Labs control-repo on GitHub.This way, whether you use PDK or just the GitHub repo as an example, you can trust to get a usable best-practice setup.
Copied from original issue: #333
Beta Was this translation helpful? Give feedback.
All reactions