Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(PDOC-228) puppet plan support #168

Merged
merged 1 commit into from
Mar 29, 2018
Merged

Conversation

eputnam
Copy link
Contributor

@eputnam eputnam commented Mar 23, 2018

Currently, Puppet Strings only supports Puppet Tasks. Since Plans are
sort of connected to Tasks, it seemed right that Strings should also
support Plans. That and Plans are a thing that needs to be documented.

First, the Puppet[:tasks] setting needs to be set to add the 'plan' keyword to the Puppet Parser's lexicon, so this sets it in the Strings parser if the setting exists. If it does not exist and Puppet.version is less than 5.0.0, Strings will error out.

Second, processing for the Plans themselves is set up. Plans are very
similar to other Puppet objects like defined types and classes, so this
involved some serious copy-pasta.

Third, all the template/to_hash scaffolding for the different outputs is in place (HTML,
JSON, Markdown).

Yey.

@eputnam eputnam changed the title (PDOC-228) puppet planz (PDOC-228) WIP puppet planz Mar 23, 2018
@eputnam eputnam force-pushed the _pdoc228 branch 3 times, most recently from 0559a21 to 4cc47b3 Compare March 25, 2018 02:23
@eputnam eputnam changed the title (PDOC-228) WIP puppet planz (PDOC-228) puppet plan support Mar 27, 2018
Currently, Puppet Strings only supports Puppet Tasks. Since Plans are
sort of connected to Tasks, it seemed right that Strings should also
support Plans. That and Plans are a thing that needs to be documented.

First, the Puppet[:tasks] setting needs to be set to add the 'plan' keyword to the Puppet Parser's lexicon, so this sets it in the Strings parser if the setting exists. If it does not exist and Puppet.version is less than 5.0.0, Strings will error out.

Second, processing for the Plans themselves is set up. Plans are very
similar to other Puppet objects like defined types and classes, so this
involved some serious copy-pasta.

Third, all the template/to_hash scaffolding for the different outputs is in place (HTML,
JSON, Markdown).

Yey.
@hunner hunner merged commit da5cad7 into puppetlabs:master Mar 29, 2018
hunner added a commit that referenced this pull request Mar 29, 2018
(PDOC-228) puppet plan support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants