Description
Use Case
When I have set up skip_tags to skip specific manifests and code on regular runs and want to test it by running
puppet agent -t --tags myfeature
then if that feature happens to have those skipped tags then they will be skipped still. It would make more sense to ignore skip_tags
on runs where you initialize it manually or at least when --tags
is provided.
Describe the Solution You Would Like
When puppet agent
is started with --tags
argument then it will ignore skip_tags config parameter.
Describe Alternatives You've Considered
Currently I have to add --skip_tags ''
to the command to clear it.
Additional Context
Just wondering how you think it people should be using --tags
parameter when it is running periodically. What is the point of running just one section of code when periodic one already ensured the code was run. It would make more sense to be able to invoke part of code that is normally skipped.
puppet agent --test --tags kris --debug
...
Debug: Logrotate::Rule[postgres]: Not tagged with kris
Debug: Logrotate::Rule[postgres]: Resource is being skipped, unscheduling all events
...
Debug: /Stage[main]/Profiles::Manage_user[kris]/Group[kris]: Skipping with skip tags test, onetime, initialize
Debug: /Stage[main]/Profiles::Manage_user[kris]/Group[kris]: Resource is being skipped, unscheduling all events
Debug: /Stage[main]/Profiles::Manage_user[kris]/User[kris]: Skipping with skip tags test, onetime, initialize
Debug: /Stage[main]/Profiles::Manage_user[kris]/User[kris]: Resource is being skipped, unscheduling all events
...
Plenty of resources report as not tagged and should not be run, however when it processes the ones that have correct tag then skip_tags parameter seems to block them.
PQL query like: resources [title, type, tags] {tags = 'dm' and title = 'kris'}
brings such results
[
{
"tags": [
"manage_user",
"profiles::manage_user",
"group",
...
"kris",
"test"
],
"title": "kris",
"type": "Group"
},
{
"tags": [
"manage_user",
"profiles::manage_user",
"user",
...
"kris",
"test"
],
"title": "kris",
"type": "User"
}
]
The resources itself have correct flag to run and also flag to satisfy skip_tags condition.