Commit eac1f065 authored by Julie gauthier's avatar Julie gauthier
Browse files

BUILD: add installation based on local project

parent f5af9229
......@@ -35,7 +35,7 @@
# Variables
# System user for Démarches Simplifiées
$_system_username = 'ds'
$_system_username = 'vagrant'
$_ds_home = "/home/${_system_username}"
$_ds_project_directory = "$_ds_home/demarches-simplifiees.fr"
$db_user_name = 'ds'
......@@ -48,8 +48,9 @@ $db_test_name = 'tps_test'
$db_test_user_name = 'tps_test'
$db_test_user_password = 'tps_test'
$_ds_db_test_role = 'test'
$source_code_of_ds = "https://github.com/betagouv/demarches-simplifiees.fr.git"
$_path_bundle = '/home/ds/rbenv/shims/'
$source_code_of_ds = 'https://github.com/betagouv/demarches-simplifiees.fr.git'
#$local_source_code_of_ds = '/path_to_your_shared_folder_on_vm'
$_path_bundle = "$_ds_home/rbenv/shims/"
$db_database = 'ds'
$db_pool = ''
......@@ -83,22 +84,28 @@ package { $preRequistes:
# install_options => ['/-g'],
# }
# #############################################################################
# cloning repos of demarches-simplifiees
# CODE #############################################################################
# cloning repos of demarches-simplifiees to environnement of production.
# Comment this part if you want a dev environnement.
vcsrepo { "$_ds_project_directory":
ensure => present,
provider => git,
source => $source_code_of_ds,
user => $_system_username,
require => User[$_system_username],
}
# Change owner of DemarchesSimplifiees files
file { "$_ds_project_directory":
ensure => present,
owner => $_system_username,
group => $_system_username,
recurse => true,
require => User[$_system_username],
# DEV environnement. Create a soft link on /app directory which is a share folder on your local project.
# Comment this part if you want to clone a repository installation.
#file { $_ds_project_directory:
# ensure => link,
# target => "$local_source_code_of_ds",
#}
# Desactivation of IPv6
sysctl { 'net.ipv6.conf.all.autoconf':
ensure => present,
value => '1',
}
# #############################################################################
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment