On 12 Aug 2017, at 15:08 , Maciej Delmanowski
<drybjed(a)drybjed.net> wrote:
On Aug 12, hvjunk wrote:
> This script will download playbooks and roles from their GitHub repositories
> into your user directory. Exact location is dependent upon your operating
> system:
>
> on Linux systems, it will be $XDG_DATA_HOME/debops/ which usually is
> expanded to ~/.local/share/debops/;
>
> How can I have that “shared” across the users (mostly non-sysadmin types) so when I
change/update, it’s across the users?
> (Okay, I could force them with a symbolic link, but was thinking/hoping for something
specific to the debops-init’d directory.
I think that you should be able to install DebOps globally to say,
/usr/local/share/debops:
sudo debops-update /usr/local/share/debops
Then, create a '/etc/debops.cfg' configuration file with contents:
[paths]
install-path = /usr/local/share/debops/debops-playbooks
After this, the 'debops' script should use that configuration
file and look up
the playbooks in the specified directory.
Thank you, will try this one :)
At this point running 'debops-update' from a normal user
account will result
in an error since the script will try to update the git repositories that
belong to a different user. Just to keep that in mind.
That’s 100% as it’ll only be a specific user that’ll do the updates etc.