Hi,
I'm trying to set up ansible(1) to automate a great deal of our infrastructure deployment (we do webhosting with FreeBSD jails and got a couple of different setups).
I created a simple ansible(1) bash module to install ports in jails (with
But now I've no idea how to make this setup practical to maintain because there will be new options to various ports all the time and the only solution I can think of is to login to a jail and do all the updating manually and then add the new options to the options file manually which doesn't seem practically at all.
Is there any better way to automagically configure ports? Or any simple way to get all new options for a port?
I'm trying to set up ansible(1) to automate a great deal of our infrastructure deployment (we do webhosting with FreeBSD jails and got a couple of different setups).
I created a simple ansible(1) bash module to install ports in jails (with
/usr/sbin/jexec $JAILNAME /bin/sh -c "portmaster --no-confirm -BD $PORT" >> /dev/null
on the host) and it's working good so far. To configure the ports I just copy the /var/db/ports/<portname>/options file first into the jail.But now I've no idea how to make this setup practical to maintain because there will be new options to various ports all the time and the only solution I can think of is to login to a jail and do all the updating manually and then add the new options to the options file manually which doesn't seem practically at all.
Is there any better way to automagically configure ports? Or any simple way to get all new options for a port?