Add the backup recipe

Also move the Gitea data dir to an attribute
This commit is contained in:
Greg Karékinian
2020-05-26 15:21:26 +02:00
parent 3332a1b2e8
commit baa0739936
4 changed files with 9 additions and 1 deletions

View File

@@ -23,3 +23,9 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
#
unless node.chef_environment == "development"
# backup the data dir and the config files
node.override["backup"]["archives"]["gitea"] = [node["kosmos_gitea"]["working_directory"]]
include_recipe "backup"
end

View File

@@ -28,7 +28,7 @@ include_recipe "kosmos-nginx"
domain = node["kosmos_gitea"]["nginx"]["domain"]
working_directory = "/var/lib/gitea"
working_directory = node["kosmos_gitea"]["working_directory"]
git_home_directory = "/home/git"
config_directory = "/etc/gitea"
gitea_binary_path = "/usr/local/bin/gitea"