Ask Your Question

Hiera mysql module with apt

asked 2018-07-19 10:51:43 -0600

yotles gravatar image


Could someone describe such question. For example I am using Puppet + Hiera. And I have a task to configure mysql server with puppet. So I use puppetlabs module mysql for it. I am adding "percona" repo over the module apt.

But at the end of it for the first time execute puppet agent installation of mysql crashed, because mysql trying to install before adding repo. And I can not find any examples how I can resolve it only in hiera. Or I should prepare some wrapper module on my own for this purpose?


edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2018-07-20 01:29:25 -0600

yotles gravatar image

But where I should declare run stages for my modules? Hiera support it?

edit flag offensive delete link more

answered 2018-07-19 23:37:46 -0600

Geoff gravatar image

Have a look at using puppet run-stages to run some puppet code to setup your repos before the mainpuppet stage :

That way when its time for the module to install mysql it will pick up the right version

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


Asked: 2018-07-19 10:51:43 -0600

Seen: 60 times

Last updated: Jul 20