redmine_with_git 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e52be3e9ada1bb48f3b86fd07aa74ca17ebe3879cbb8cbcec839dd0aa1cc8552
4
- data.tar.gz: 46b1cf44b1598a96029f444d25a08daca538e3b09ea4346070e88f6ce8dedd96
3
+ metadata.gz: 057d25b56b95eb3a137ab05aa17677dd6fd76a80bd3756a32ba156a268b017a0
4
+ data.tar.gz: 4fc9e3d23ea9cc2d7025a6acf5f1d92e992d72f21b8bacef6a599085ecfd5488
5
5
  SHA512:
6
- metadata.gz: 20e2702e1b74fbf0a04fff44adb099837daf4a88e516c452193bea3915b3a90abec4b2c2fa1d9532b6c04f6797034effdac70aad13a05bb7db6d26552efc27cf
7
- data.tar.gz: 5fd8ad57fc3e7604bb06398bfdefe1bb2be1868937e772266faa3e2c1e61d81851e7693e0e3583421f241b351be3f83f772d3026c6dcee3743cc888055cc3fa8
6
+ metadata.gz: 211b9424dbeb2711ff7511f33be1c53ff3d960b37a5e0eb7963448cb6fe2eb1b3402e25c081461706efcac1508081550c531e42d4fdac92621a7eb70c76fa3e4
7
+ data.tar.gz: 2530742aa6252f728dd3e68b6dbddbf749274f0ed1b9dd4fa9a10b9c092de334c5a086c8acae887ba12ae9a1f91a024b42420e231821fc0ee2e35d886ee47474
@@ -0,0 +1,11 @@
1
+ #!/bin/bash
2
+
3
+ set -e
4
+ set -u
5
+
6
+ user=$1
7
+ file=$2
8
+
9
+ set +e
10
+ sudo -u "$user" stat "$file" > /dev/null
11
+ echo $?
@@ -0,0 +1,4 @@
1
+ #!/bin/bash
2
+
3
+ # Referência: https://www.phusionpassenger.com/documentation/Users%20guide%20Apache.html#PassengerUser
4
+ stat -c '%U' "$REDMINE_ROOT/config/environment.rb"
@@ -0,0 +1,6 @@
1
+ #!/bin/bash
2
+
3
+ set -u
4
+ set -e
5
+
6
+ programeiro /rails/rake redmine_with_git:rescue
@@ -0,0 +1,6 @@
1
+ #!/bin/bash
2
+
3
+ set -e
4
+ set -u
5
+
6
+ eval echo ~$(programeiro /rails/user)/.ssh/$redmine_git_hosting_ssh_key_name
@@ -0,0 +1,10 @@
1
+ #!/bin/bash
2
+
3
+ set -u
4
+ set -e
5
+
6
+ set +e
7
+ diff "/dev/stdin" "$1" > /dev/null
8
+ result=$?
9
+ set -e
10
+ echo $result
@@ -0,0 +1,45 @@
1
+ # Auxilary functions
2
+ function sanitize_boolean_var {
3
+ if [ "$1" != 'false' -a "$1" != 'true' ]; then
4
+ if [ -n "$1" ]; then
5
+ echo 'true'
6
+ else
7
+ echo 'false'
8
+ fi
9
+ else
10
+ echo "$1"
11
+ fi
12
+ }
13
+
14
+ function set_by_boolean {
15
+ local value="${!1}"
16
+ if [ "$(sanitize_boolean_var "$value")" == 'true' ]; then
17
+ export $2=$3
18
+ else
19
+ export $2=$4
20
+ fi
21
+ }
22
+
23
+ # Default settings
24
+ export address_https=false
25
+ export address_host=localhost
26
+ export address_port=
27
+ set_by_boolean address_https address_scheme https http
28
+ export address_server="$address_host"
29
+ if [ -n "$address_port" ]; then
30
+ export address_server="$address_server:$address_port"
31
+ fi
32
+ export git_repositories_hierarchical_organisation=true
33
+ set_by_boolean git_repositories_hierarchical_organisation git_repositories_unique_repo_identifier \
34
+ false true
35
+ export gitolite_user=git
36
+ export gitolite_user_home=/var/lib/git
37
+ export redmine_git_hosting_ssh_key_name=redmine_git_hosting_id
38
+
39
+ # Auxiliary settings
40
+ export REDMINE_WITH_GIT_INSTALL_ROOT="$(dirname "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )")"
41
+ export REDMINE_WITH_GIT_TEMPLATE_ROOT="${REDMINE_WITH_GIT_INSTALL_ROOT}/template"
42
+
43
+ # Task dependencies
44
+ taskeiro_add_dependency redmine_bundle redmine_with_git_bundle_requirements
45
+ taskeiro_add_dependency development redmine_git_hosting
@@ -0,0 +1,14 @@
1
+ #!/bin/bash
2
+
3
+ set -u
4
+ set -e
5
+
6
+ export RUBY_PACKAGE="ruby"
7
+
8
+ function task_condition {
9
+ programeiro /apt/installed "$RUBY_PACKAGE"
10
+ }
11
+
12
+ function task_fix {
13
+ programeiro /apt/assert_installed "$RUBY_PACKAGE"
14
+ }
@@ -0,0 +1,14 @@
1
+ #!/bin/bash
2
+
3
+ set -u
4
+ set -e
5
+
6
+ export GITOLITE_PACKAGE='gitolite3'
7
+
8
+ function task_condition {
9
+ return $(programeiro /apt/installed "$GITOLITE_PACKAGE")
10
+ }
11
+
12
+ function task_fix {
13
+ programeiro /apt/assert_installed "$GITOLITE_PACKAGE"
14
+ }
@@ -0,0 +1,28 @@
1
+ #!/bin/bash
2
+
3
+ set -u
4
+ set -e
5
+
6
+ gitolite_rc_file="$gitolite_user_home/.gitolite.rc"
7
+
8
+ function gitolite_rc_template {
9
+ programeiro /template/apply "${REDMINE_WITH_GIT_TEMPLATE_ROOT}/gitolite.rc"
10
+ }
11
+
12
+ function task_dependencies {
13
+ echo gitolite_setup
14
+ }
15
+
16
+ function task_condition {
17
+ temprc="$(sudo -u "$gitolite_user" mktemp)"
18
+ sudo -u "$gitolite_user" cp "$gitolite_user_home/.gitolite.rc" "$temprc"
19
+ sudo -u "$gitolite_user" chmod 777 "$temprc"
20
+ if [ "$(gitolite_rc_template | programeiro /text/diff_stdin_file "$temprc" )" -ne 0 ]; then
21
+ return 1
22
+ fi
23
+ }
24
+
25
+ function task_fix {
26
+ gitolite_rc_template | sudo -u "$gitolite_user" tee "$gitolite_user_home/.gitolite.rc" > /dev/null
27
+ programeiro /redmine/installer/triggers/set 'redmine_git_hosting_rescue'
28
+ }
@@ -0,0 +1,25 @@
1
+ #!/bin/bash
2
+
3
+ set -u
4
+ set -e
5
+
6
+ function task_dependencies {
7
+ echo gitolite_user_home gitolite redmine_git_hosting_ssh_key
8
+ }
9
+
10
+ function task_condition {
11
+ sudo -u "$(programeiro /rails/user)" ssh -oBatchMode=yes -oStrictHostKeyChecking=no -i "$(programeiro /redmine_git_hosting/ssh_key)" -l "$gitolite_user" localhost info
12
+ }
13
+
14
+ function task_fix {
15
+ set -u
16
+ set -e
17
+ programeiro /apt/assert_installed openssh-server
18
+ sudo service ssh restart
19
+ local tempdir=$(sudo -u "$(programeiro /rails/user)" mktemp -d)
20
+ local publickey_temp="$tempdir/$(basename "$(programeiro /redmine_git_hosting/ssh_key)")".pub
21
+ sudo -u "$(programeiro /rails/user)" chmod 777 "$tempdir" -R
22
+ sudo -u "$(programeiro /rails/user)" cp "$(programeiro /redmine_git_hosting/ssh_key)".pub "$publickey_temp"
23
+ sudo -u "$gitolite_user" -H gitolite setup --pubkey "$publickey_temp"
24
+ sudo -u "$(programeiro /rails/user)" rm -rf "$tempdir"
25
+ }
@@ -0,0 +1,12 @@
1
+ #!/bin/bash
2
+
3
+ set -u
4
+ set -e
5
+
6
+ function task_condition {
7
+ id -u "$gitolite_user" >/dev/null 2>&1
8
+ }
9
+
10
+ function task_fix {
11
+ sudo useradd --system "$gitolite_user"
12
+ }
@@ -0,0 +1,24 @@
1
+ #!/bin/bash
2
+
3
+ set -u
4
+ set -e
5
+
6
+ function task_dependencies {
7
+ echo gitolite_user
8
+ }
9
+
10
+ function task_condition {
11
+ local current_home=$(eval echo ~$gitolite_user)
12
+ if [ "$current_home" != "$gitolite_user_home" ]; then
13
+ return 1
14
+ fi
15
+ if [ ! -d "$gitolite_user_home" ]; then
16
+ return 1
17
+ fi
18
+ }
19
+
20
+ function task_fix {
21
+ sudo usermod -d "$gitolite_user_home" "$gitolite_user"
22
+ sudo mkdir -p "$gitolite_user_home"
23
+ sudo chown "$gitolite_user:$gitolite_user" "$gitolite_user_home"
24
+ }
@@ -0,0 +1,14 @@
1
+ #!/bin/bash
2
+
3
+ set -u
4
+ set -e
5
+
6
+ export PYTHON2_PACKAGE='python-minimal'
7
+
8
+ function task_condition {
9
+ return $(programeiro /apt/installed "$PYTHON2_PACKAGE")
10
+ }
11
+
12
+ function task_fix {
13
+ programeiro /apt/assert_installed "$PYTHON2_PACKAGE"
14
+ }
@@ -0,0 +1,29 @@
1
+ #!/bin/bash
2
+
3
+ set -u
4
+ set -e
5
+
6
+ function enabled_scm_setting_template {
7
+ cat "${REDMINE_WITH_GIT_TEMPLATE_ROOT}/redmine_enabled_scm_setting_value"
8
+ }
9
+ export -f enabled_scm_setting_template
10
+
11
+ function enabled_scm_setting_current {
12
+ programeiro /redmine/get_setting_value 'enabled_scm'
13
+ }
14
+ export -f enabled_scm_setting_current
15
+
16
+ function task_dependencies {
17
+ echo redmine_database_schema redmine_git_hosting_settings gitolite_rc
18
+ }
19
+
20
+ function task_condition {
21
+ return $(programeiro /text/diff_commands 'enabled_scm_setting_template' 'enabled_scm_setting_current')
22
+ }
23
+
24
+ function task_fix {
25
+ set -u
26
+ set -e
27
+ local setting_value=$(enabled_scm_setting_template | programeiro /text/escape_single_quotes)
28
+ programeiro /redmine/set_setting_value 'enabled_scm' "$setting_value"
29
+ }
@@ -0,0 +1,12 @@
1
+ #!/bin/bash
2
+
3
+ set -u
4
+ set -e
5
+
6
+ function task_condition {
7
+ return 0
8
+ }
9
+
10
+ function task_dependencies {
11
+ echo gitolite_rc redmine_gitolite_sudoer redmine_git_hosting_settings apt_ruby python_two
12
+ }
@@ -0,0 +1,29 @@
1
+ #!/bin/bash
2
+
3
+ set -u
4
+ set -e
5
+
6
+ function redmine_git_hosting_setting_template {
7
+ export redmine_git_hosting_ssh_key=$(programeiro /redmine_git_hosting/ssh_key)
8
+ programeiro /template/apply "${REDMINE_WITH_GIT_TEMPLATE_ROOT}/redmine_git_hosting_setting_value.sql" -
9
+ }
10
+ export -f redmine_git_hosting_setting_template
11
+
12
+ function redmine_git_hosting_setting_current {
13
+ programeiro /redmine/get_setting_value 'plugin_redmine_git_hosting'
14
+ }
15
+ export -f redmine_git_hosting_setting_current
16
+
17
+ function task_dependencies {
18
+ echo redmine_database_schema
19
+ }
20
+
21
+ function task_condition {
22
+ return $(programeiro /text/diff_commands 'redmine_git_hosting_setting_template' 'redmine_git_hosting_setting_current')
23
+ }
24
+
25
+ function task_fix {
26
+ local setting_value=$(redmine_git_hosting_setting_template | programeiro /text/escape_single_quotes)
27
+ programeiro /redmine/set_setting_value 'plugin_redmine_git_hosting' "$setting_value"
28
+ programeiro /redmine/installer/triggers/set 'redmine_git_hosting_rescue'
29
+ }
@@ -0,0 +1,17 @@
1
+ #!/bin/bash
2
+
3
+ set -u
4
+ set -e
5
+
6
+ redmine_user=$(programeiro /rails/user)
7
+ ssh_key=$(programeiro /redmine_git_hosting/ssh_key)
8
+
9
+ function task_condition {
10
+ return $(programeiro /linux/sudo_file_exists "$redmine_user" "$ssh_key")
11
+ }
12
+ export -f task_condition
13
+
14
+ function task_fix {
15
+ sudo -u "$redmine_user" -H ssh-keygen -t rsa -f "$ssh_key" -N ''
16
+ }
17
+ export -f task_fix
@@ -0,0 +1,45 @@
1
+ #!/bin/bash
2
+
3
+ set -u
4
+ set -e
5
+
6
+ SUDOER_FILE="/etc/sudoers.d/$(programeiro /rails/user)_redmine_with_git"
7
+
8
+ function sudoers_file_copy_file() {
9
+ TMPFILE="$(mktemp)"
10
+ sudo cp "$SUDOER_FILE" "$TMPFILE"
11
+ sudo chmod og+r "$TMPFILE"
12
+ printf "$TMPFILE\n"
13
+ }
14
+
15
+ function task_dependencies {
16
+ echo gitolite_user
17
+ }
18
+
19
+ export -f task_dependencies
20
+
21
+ function task_condition {
22
+ if [ "$(programeiro /linux/sudo_file_exists "root" "$SUDOER_FILE")" != '0' ]; then
23
+ return 1
24
+ fi
25
+ export rails_user="$(programeiro /rails/user)"
26
+ SUDOERS_FILE_COPY="$(sudoers_file_copy_file)"
27
+ result=$(programeiro /template/apply "${REDMINE_WITH_GIT_TEMPLATE_ROOT}/redmine_user_sudoer" | programeiro /text/diff_stdin_file "$SUDOERS_FILE_COPY")
28
+ sudo rm -f "$SUDOERS_FILE_COPY"
29
+ if [ "$result" != '0' ]; then
30
+ return 1
31
+ fi
32
+ if [ "$(sudo stat -c "%a" "$SUDOER_FILE")" != '440' ]; then
33
+ return 1
34
+ fi
35
+ }
36
+ export -f task_condition
37
+
38
+ function task_fix {
39
+ set -u
40
+ set -e
41
+ export rails_user="$(programeiro /rails/user)"
42
+ programeiro /template/apply "$REDMINE_WITH_GIT_TEMPLATE_ROOT/redmine_user_sudoer" | sudo tee "$SUDOER_FILE" > /dev/null
43
+ sudo chmod 440 "$SUDOER_FILE"
44
+ }
45
+ export -f task_fix
@@ -0,0 +1,15 @@
1
+ #!/bin/bash
2
+
3
+ set -u
4
+ set -e
5
+
6
+ REDMINE_WITH_GIT_PACKAGES=(build-essential libcurl4-openssl-dev libssh2-1 libssh2-1-dev cmake \
7
+ libgpg-error-dev)
8
+
9
+ function task_condition {
10
+ return $(programeiro /apt/installed "${REDMINE_WITH_GIT_PACKAGES[@]}")
11
+ }
12
+
13
+ function task_fix {
14
+ programeiro /apt/assert_installed "${REDMINE_WITH_GIT_PACKAGES[@]}"
15
+ }
@@ -0,0 +1,203 @@
1
+ # configuration variables for gitolite
2
+
3
+ # This file is in perl syntax. But you do NOT need to know perl to edit it --
4
+ # just mind the commas, use single quotes unless you know what you're doing,
5
+ # and make sure the brackets and braces stay matched up!
6
+
7
+ # (Tip: perl allows a comma after the last item in a list also!)
8
+
9
+ # HELP for commands can be had by running the command with "-h".
10
+
11
+ # HELP for all the other FEATURES can be found in the documentation (look for
12
+ # "list of non-core programs shipped with gitolite" in the master index) or
13
+ # directly in the corresponding source file.
14
+
15
+ %RC = (
16
+
17
+ # ------------------------------------------------------------------
18
+
19
+ # default umask gives you perms of '0700'; see the rc file docs for
20
+ # how/why you might change this
21
+ UMASK => 0077,
22
+
23
+ # look for "git-config" in the documentation
24
+ GIT_CONFIG_KEYS => '.*',
25
+
26
+ # comment out if you don't need all the extra detail in the logfile
27
+ LOG_EXTRA => 1,
28
+ # logging options
29
+ # 1. leave this section as is for 'normal' gitolite logging (default)
30
+ # 2. uncomment this line to log ONLY to syslog:
31
+ # LOG_DEST => 'syslog',
32
+ # 3. uncomment this line to log to syslog and the normal gitolite log:
33
+ # LOG_DEST => 'syslog,normal',
34
+ # 4. prefixing "repo-log," to any of the above will **also** log just the
35
+ # update records to "gl-log" in the bare repo directory:
36
+ # LOG_DEST => 'repo-log,normal',
37
+ # LOG_DEST => 'repo-log,syslog',
38
+ # LOG_DEST => 'repo-log,syslog,normal',
39
+ # syslog 'facility': defaults to 'local0', uncomment if needed. For example:
40
+ # LOG_FACILITY => 'local4',
41
+
42
+ # roles. add more roles (like MANAGER, TESTER, ...) here.
43
+ # WARNING: if you make changes to this hash, you MUST run 'gitolite
44
+ # compile' afterward, and possibly also 'gitolite trigger POST_COMPILE'
45
+ ROLES => {
46
+ READERS => 1,
47
+ WRITERS => 1,
48
+ },
49
+
50
+ # enable caching (currently only Redis). PLEASE RTFM BEFORE USING!!!
51
+ # CACHE => 'Redis',
52
+
53
+ # ------------------------------------------------------------------
54
+
55
+ # rc variables used by various features
56
+
57
+ # the 'info' command prints this as additional info, if it is set
58
+ # SITE_INFO => 'Please see http://blahblah/gitolite for more help',
59
+
60
+ # the CpuTime feature uses these
61
+ # display user, system, and elapsed times to user after each git operation
62
+ # DISPLAY_CPU_TIME => 1,
63
+ # display a warning if total CPU times (u, s, cu, cs) crosses this limit
64
+ # CPU_TIME_WARN_LIMIT => 0.1,
65
+
66
+ # the Mirroring feature needs this
67
+ # HOSTNAME => "foo",
68
+
69
+ # TTL for redis cache; PLEASE SEE DOCUMENTATION BEFORE UNCOMMENTING!
70
+ # CACHE_TTL => 600,
71
+
72
+ # ------------------------------------------------------------------
73
+
74
+ # suggested locations for site-local gitolite code (see cust.html)
75
+
76
+ # this one is managed directly on the server
77
+ # LOCAL_CODE => "$ENV{HOME}/local",
78
+ LOCAL_CODE => "$ENV{HOME}/local",
79
+
80
+ # or you can use this, which lets you put everything in a subdirectory
81
+ # called "local" in your gitolite-admin repo. For a SECURITY WARNING
82
+ # on this, see http://gitolite.com/gitolite/non-core.html#pushcode
83
+ # LOCAL_CODE => "$rc{GL_ADMIN_BASE}/local",
84
+
85
+ # ------------------------------------------------------------------
86
+
87
+ # List of commands and features to enable
88
+
89
+ ENABLE => [
90
+
91
+ # COMMANDS
92
+
93
+ # These are the commands enabled by default
94
+ 'help',
95
+ 'desc',
96
+ 'info',
97
+ 'perms',
98
+ 'writable',
99
+
100
+ # Uncomment or add new commands here.
101
+ # 'create',
102
+ # 'fork',
103
+ # 'mirror',
104
+ # 'readme',
105
+ # 'sskm',
106
+ # 'D',
107
+
108
+ # These FEATURES are enabled by default.
109
+
110
+ # essential (unless you're using smart-http mode)
111
+ 'ssh-authkeys',
112
+
113
+ # creates git-config entries from gitolite.conf file entries like 'config foo.bar = baz'
114
+ 'git-config',
115
+
116
+ # creates git-daemon-export-ok files; if you don't use git-daemon, comment this out
117
+ 'daemon',
118
+
119
+ # creates projects.list file; if you don't use gitweb, comment this out
120
+ 'gitweb',
121
+
122
+ # These FEATURES are disabled by default; uncomment to enable. If you
123
+ # need to add new ones, ask on the mailing list :-)
124
+
125
+ # user-visible behaviour
126
+
127
+ # prevent wild repos auto-create on fetch/clone
128
+ # 'no-create-on-read',
129
+ # no auto-create at all (don't forget to enable the 'create' command!)
130
+ # 'no-auto-create',
131
+
132
+ # access a repo by another (possibly legacy) name
133
+ # 'Alias',
134
+
135
+ # give some users direct shell access. See documentation in
136
+ # sts.html for details on the following two choices.
137
+ # "Shell $ENV{HOME}/.gitolite.shell-users",
138
+ # 'Shell alice bob',
139
+
140
+ # set default roles from lines like 'option default.roles-1 = ...', etc.
141
+ # 'set-default-roles',
142
+
143
+ # show more detailed messages on deny
144
+ # 'expand-deny-messages',
145
+
146
+ # show a message of the day
147
+ # 'Motd',
148
+
149
+ # system admin stuff
150
+
151
+ # enable mirroring (don't forget to set the HOSTNAME too!)
152
+ # 'Mirroring',
153
+
154
+ # allow people to submit pub files with more than one key in them
155
+ # 'ssh-authkeys-split',
156
+
157
+ # selective read control hack
158
+ # 'partial-copy',
159
+
160
+ # manage local, gitolite-controlled, copies of read-only upstream repos
161
+ # 'upstream',
162
+
163
+ # updates 'description' file instead of 'gitweb.description' config item
164
+ # 'cgit',
165
+
166
+ # allow repo-specific hooks to be added
167
+ # 'repo-specific-hooks',
168
+
169
+ # performance, logging, monitoring...
170
+
171
+ # be nice
172
+ # 'renice 10',
173
+
174
+ # log CPU times (user, system, cumulative user, cumulative system)
175
+ # 'CpuTime',
176
+
177
+ # syntactic_sugar for gitolite.conf and included files
178
+
179
+ # allow backslash-escaped continuation lines in gitolite.conf
180
+ # 'continuation-lines',
181
+
182
+ # create implicit user groups from directory names in keydir/
183
+ # 'keysubdirs-as-groups',
184
+
185
+ # allow simple line-oriented macros
186
+ # 'macros',
187
+
188
+ # Kindergarten mode
189
+
190
+ # disallow various things that sensible people shouldn't be doing anyway
191
+ # 'Kindergarten',
192
+ ],
193
+
194
+ );
195
+
196
+ # ------------------------------------------------------------------------------
197
+ # per perl rules, this should be the last line in such a file:
198
+ 1;
199
+
200
+ # Local variables:
201
+ # mode: perl
202
+ # End:
203
+ # vim: set syn=perl:
@@ -0,0 +1,2 @@
1
+ ---
2
+ - Xitolite
@@ -0,0 +1,47 @@
1
+ --- !ruby/hash:ActionController::Parameters
2
+ gitolite_user: ${gitolite_user}
3
+ gitolite_ssh_private_key: "${redmine_git_hosting_ssh_key}"
4
+ gitolite_ssh_public_key: "${redmine_git_hosting_ssh_key}.pub"
5
+ gitolite_server_port: '22'
6
+ gitolite_global_storage_dir: repositories/
7
+ gitolite_recycle_bin_dir: recycle_bin/
8
+ gitolite_redmine_storage_dir: ''
9
+ gitolite_temp_dir: "/tmp/redmine_git_hosting_${gitolite_user}/"
10
+ gitolite_config_file: gitolite.conf
11
+ gitolite_config_has_admin_key: 'true'
12
+ gitolite_identifier_prefix: redmine_
13
+ gitolite_recycle_bin_expiration_time: 24.0
14
+ gitolite_log_level: info
15
+ git_config_username: Redmine Git Hosting
16
+ git_config_email: redmine@example.net
17
+ ssh_server_domain: ${address_host}
18
+ http_server_domain: ${address_server}
19
+ https_server_domain: ${address_server}
20
+ http_server_subdir: ''
21
+ show_repositories_url: 'true'
22
+ gitolite_daemon_by_default: 'false'
23
+ gitolite_http_by_default: '1'
24
+ download_revision_enabled: 'true'
25
+ gitolite_overwrite_existing_hooks: 'true'
26
+ gitolite_hooks_are_asynchronous: 'false'
27
+ gitolite_hooks_debug: 'false'
28
+ gitolite_hooks_url: "${address_scheme}://${address_server}${address_path}"
29
+ gitolite_cache_max_time: '86400'
30
+ gitolite_cache_max_size: '16'
31
+ gitolite_cache_max_elements: '2000'
32
+ gitolite_cache_adapter: database
33
+ gitolite_notify_by_default: 'false'
34
+ gitolite_notify_global_prefix: "[REDMINE]"
35
+ gitolite_notify_global_sender_address: redmine@example.net
36
+ gitolite_notify_global_include: []
37
+ gitolite_notify_global_exclude: []
38
+ all_projects_use_git: 'false'
39
+ init_repositories_on_create: 'false'
40
+ delete_git_repositories: 'true'
41
+ hierarchical_organisation: '${git_repositories_hierarchical_organisation}'
42
+ gitolite_use_sidekiq: 'false'
43
+ unique_repo_identifier: '${git_repositories_unique_repo_identifier}'
44
+ gitolite_resync_all_projects: 'false'
45
+ gitolite_resync_all_ssh_keys: 'false'
46
+ gitolite_flush_cache: 'false'
47
+ gitolite_purge_repos: []
@@ -0,0 +1,2 @@
1
+ Defaults:redmine !requiretty
2
+ ${rails_user} ALL=(${gitolite_user}) NOPASSWD:ALL
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RedmineWithGit
4
- VERSION = '0.4.0'
4
+ VERSION = '0.5.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redmine_with_git
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-27 00:00:00.000000000 Z
11
+ date: 2019-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm-tools
@@ -78,6 +78,29 @@ files:
78
78
  - config/locales/pt-BR.yml
79
79
  - config/routes.rb
80
80
  - init.rb
81
+ - installer/programs/linux/sudo_file_exists.sh
82
+ - installer/programs/rails/user.sh
83
+ - installer/programs/redmine/installer/triggers/list/redmine_git_hosting_rescue.sh
84
+ - installer/programs/redmine_git_hosting/ssh_key.sh
85
+ - installer/programs/text/diff_stdin_file.sh
86
+ - installer/tasks/_before_run.sh
87
+ - installer/tasks/apt_ruby.sh
88
+ - installer/tasks/gitolite.sh
89
+ - installer/tasks/gitolite_rc.sh
90
+ - installer/tasks/gitolite_setup.sh
91
+ - installer/tasks/gitolite_user.sh
92
+ - installer/tasks/gitolite_user_home.sh
93
+ - installer/tasks/python_two.sh
94
+ - installer/tasks/redmine_enabled_scm_setting.sh
95
+ - installer/tasks/redmine_git_hosting.sh
96
+ - installer/tasks/redmine_git_hosting_settings.sh
97
+ - installer/tasks/redmine_git_hosting_ssh_key.sh
98
+ - installer/tasks/redmine_gitolite_sudoer.sh
99
+ - installer/tasks/redmine_with_git_bundle_requirements.sh
100
+ - installer/template/gitolite.rc
101
+ - installer/template/redmine_enabled_scm_setting_value
102
+ - installer/template/redmine_git_hosting_setting_value.sql
103
+ - installer/template/redmine_user_sudoer
81
104
  - lib/redmine_with_git/dump/all.rb
82
105
  - lib/redmine_with_git/dump/base.rb
83
106
  - lib/redmine_with_git/dump/database.rb