On Aug 12, hvjunk wrote:
This script will download playbooks and roles from their GitHub
into your user directory. Exact location is dependent upon your operating
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,
sudo debops-update /usr/local/share/debops
Then, create a '/etc/debops.cfg' configuration file with contents:
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.
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.