On Thursday, July 5, 2018 at 10:26:53 AM UTC-5, ot...@otimm.net wrote:
>
> Hi - I'm building a new environment and will very soon need a level of 
> config management.
>
> I have puppet-server installed. I have an agent installed and ready to go.
> The first thing i would like to achieve are some systemd mount services 
> that I have manually working on Centos 7.4.
>
>

Are you aware that the systemd documentation 
<https://www.freedesktop.org/software/systemd/man/systemd.mount.html> 
itself says that the preferred way to configure mounts is via /etc/fstab 
(entries are dynamically converted to mount units at boot).  I'm supposing 
based on how your describe them that that is not how you've set up your 
mounts, but you should consider changing course.

 

> I'm not sure if I'm best to start from scratch and keep it simple?
>


It is simple indeed to use Puppet's built-in Mount resource type to manage 
mounts, and that's what I would recommend. But be aware that on Linux, it 
will manage them via /etc/fstab.  If you want to directly manage systemd 
unit files for your mounts then you'll need something else.

 

> or use a module from puppetforge?
>


The only systemd module I recommend from the Forge is eyp/systemd 
<https://forge.puppet.com/eyp/systemd>.  I use it myself.  It does not have 
support for mount units, but if that's what you really want then I'd urge 
you to consider starting with this or another mature module and adding 
support for mount units.  That is likely to be easier than starting from 
scratch, because you will have a framework to build on and examples of how 
to build what you need.

 

> I'd love it if someone can point me in the direction of a good guide for 
> something like this?
> or a link to some known working methods or examples?
>


Generally speaking, the Forge has lots of good examples of modules in 
general.  I've already mentioned the one I'd point you to for systemd 
specifically, and I don't think you'll find one for systemd mount units 
specifically.


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/0b29bfd8-9c3b-4d5f-b1da-9f6e9f202a7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to