Ask Your Question

Make a resource wait for something else to finish before editing a file

asked 2016-06-17 12:01:33 -0600

kwsstone gravatar image

I'm trying to use the domainjoin module from Github to join a RedHat box to an active directory domain. This module creates sssd.conf among other files. The module doesn't provide the simpleallowgroups field for sssd.conf, so I need to edit the file using something like inisetting (again from Github) to add the line.

I need to be able to control the order of execution so that the domainjoin module does all its work before I attempt editing sssd.conf in the manifest. I've tried a number of things, none of which have worked so far. Generally, trying to refer to either domainjoin in a Require clause fails due to an unknown resource type. I've also tried to check the existence of a script that domain_join creates as a trigger for editing sssd.conf, but it didn't help.

So I'm looking for ideas on how to make the inisetting resource wait on the completion of domainjoin before making its edit sssd.conf.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-06-17 13:20:49 -0600

kwsstone gravatar image

I just needed require => Class['domain_join']

in the ini_setting resource.


edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2016-06-17 12:01:33 -0600

Seen: 196 times

Last updated: Jun 17 '16