How to run a command in spite of failed dependencies
Team,
I need to execute something in spite of failed dependencies in my manifests, how do I do this. Thanks as always.
First time here? Check out the FAQ!
Team,
I need to execute something in spite of failed dependencies in my manifests, how do I do this. Thanks as always.
The only way you can do that is by removing any dependencies between the resources, e.g. attributes or chaining arrows.
However, the better question is: why do you want to do this, and under what circumstances? If resource A truly requires resource B, then how can you apply resource A if resource B fails? If it doesn't matter, then there's no dependency between those resources.
Have a look at the service resource type: https://docs.puppetlabs.com/references/latest/type.html#service. That's what you need to use to start a service. If the service doesn't depend on anything else on your system, you don't need to create dependencies on it. NB: If you can't start the service by
what Greg said . .. but just to add to it - the puppet DSL isn't about running a set of commands per se but about defining the end state you want to achieve - so from that point of view you need to specify dependencies (or none - as it appears in this case)
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2015-07-29 15:26:15 -0600
Seen: 133 times
Last updated: Jul 30 '15
How do you manage a package with tons of dependent package?
How to install multiple rpm packages with dependencies using puppet ?
Dependency loop with removal of directory and files when setting enabled to false
How to specify function dependency?
What's best practice when combining Roles, Profiles, Containment and Ordering?
Removing a service with dependencies
What's Wrong With My Dependencies?
Fact will only be set correctly after two runs (dynamic calculation via python script) [closed]