Replies: 3 comments 4 replies
|
@kagehisa After succesful bootstrapping a policy run is done. I do not know you setup, but can you detect that the vault is copied or is local present. IF the class is set (VAUlT_FILE_IS_PRESENT). You can run |
|
You want the file with the token be copied to a client when client is bootstrapped? When a client is bootstrapped a policy run is only done on the client. The file is the same for all clients? What I would do it define in cf-serverd a then you can copy this file in you cfengine masterfiles: This is just an example |
|
I am just reading how Then on the policy_server you need a process that detects the new key and then generate a token file encrypted with the pub key. You can protect the file so that only that client can fetch this file and use a the When the file is present the host will fetch it with a run and you can continue. If not wait for the file to be generated.. It all depends on your workflow. |
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone!
I'm new to cfengine and in the middle of the process of moving our base machine configuration away from ansible to cfengine.
Although ansible works fine for the initial setup of a machine I would like an agent based system to make sure the basic configuration on all my machines is and stays the way I defined it.
At the moment I'm making sure all hosts are getting the credentials to access our vault.
cf-secretseems to be the perfect tool for the job and I already implemented the copy process of the encrypted vault tokens to the respective clients. The only thing that is missing is the actual run ofcf-secretafter a new system bootstrapped itself to the policy server. Which brings me to my actual question:Is there a way to run a certain action on the policy server after a client performed the bootstrapping process?
It would be easy to fall back to ansible for this step but I would like it if there is a way for cfengine to perform this step on its own.
Sorry if this seems basic to most of you but I couldn't find a starting point to dig further for this problem.
Thanks for reading this far and I hope someone could give me a hint where to look for further information to answer my question.
All reactions