finished gitlab state, fixed resolver issue with nginx, and addes sshfs mounts for deluge, radarr and sonarr
This commit is contained in:
parent
037fd19b0f
commit
a95bb60386
10 changed files with 35 additions and 16 deletions
6
pillars/roles/mount/deluge.sls
Normal file
6
pillars/roles/mount/deluge.sls
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
mount:
|
||||||
|
sshfs:
|
||||||
|
/mnt/video:
|
||||||
|
host: host.actcur.com
|
||||||
|
directory: /mnt/butter/video
|
||||||
|
user: mount
|
6
pillars/roles/mount/radarr.sls
Normal file
6
pillars/roles/mount/radarr.sls
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
mount:
|
||||||
|
sshfs:
|
||||||
|
/mnt/video:
|
||||||
|
host: host.actcur.com
|
||||||
|
directory: /mnt/butter/video
|
||||||
|
user: mount
|
6
pillars/roles/mount/sonarr.sls
Normal file
6
pillars/roles/mount/sonarr.sls
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
mount:
|
||||||
|
sshfs:
|
||||||
|
/mnt/video:
|
||||||
|
host: host.actcur.com
|
||||||
|
directory: /mnt/butter/video
|
||||||
|
user: mount
|
|
@ -4,9 +4,6 @@ redis-running:
|
||||||
service.running:
|
service.running:
|
||||||
- name: redis
|
- name: redis
|
||||||
- enable: true
|
- enable: true
|
||||||
- watch:
|
|
||||||
- file: /etc/redis.conf
|
|
||||||
- file: /etc/tempfiles.d/redis.conf
|
|
||||||
gitlab_init_db:
|
gitlab_init_db:
|
||||||
cmd.run:
|
cmd.run:
|
||||||
- name: "bundle-2.3 exec rake gitlab:setup RAILS_ENV=production force=yes"
|
- name: "bundle-2.3 exec rake gitlab:setup RAILS_ENV=production force=yes"
|
||||||
|
|
|
@ -9,7 +9,7 @@ production:
|
||||||
database: gitlab
|
database: gitlab
|
||||||
pool: 10
|
pool: 10
|
||||||
username: gitlab
|
username: gitlab
|
||||||
password: "jMDuAGPf2nfKAyXrOKSM"
|
password: "{%- include 'secure/gitlab_db_password.txt' -%}"
|
||||||
host: sql.actcur.com
|
host: sql.actcur.com
|
||||||
# socket: /tmp/mysql.sock
|
# socket: /tmp/mysql.sock
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ server {
|
||||||
## the ip address of the server (http://x.x.x.x/)n 0.0.0.0:80 default_server;
|
## the ip address of the server (http://x.x.x.x/)n 0.0.0.0:80 default_server;
|
||||||
listen 0.0.0.0:8000;
|
listen 0.0.0.0:8000;
|
||||||
listen [::]:8000;
|
listen [::]:8000;
|
||||||
server_name git2.actcuricom; ## Replace this with something like gitlab.example.com
|
server_name git2.actcur.com; ## Replace this with something like gitlab.example.com
|
||||||
server_tokens off; ## Don't show the nginx version number, a security best practice
|
server_tokens off; ## Don't show the nginx version number, a security best practice
|
||||||
|
|
||||||
## See app/controllers/application_controller.rb for headers set
|
## See app/controllers/application_controller.rb for headers set
|
||||||
|
|
|
@ -30,8 +30,8 @@ production: &base
|
||||||
gitlab:
|
gitlab:
|
||||||
## Web server settings (note: host is the FQDN, do not include http://)
|
## Web server settings (note: host is the FQDN, do not include http://)
|
||||||
host: git.actcur.com
|
host: git.actcur.com
|
||||||
port: 8000 # Set to 443 if using HTTPS, see installation.md#using-https for additional HTTPS configuration details
|
port: 443 # Set to 443 if using HTTPS, see installation.md#using-https for additional HTTPS configuration details
|
||||||
https: false # Set to true if using HTTPS, see installation.md#using-https for additional HTTPS configuration details
|
https: true # Set to true if using HTTPS, see installation.md#using-https for additional HTTPS configuration details
|
||||||
|
|
||||||
# Uncommment this line below if your ssh host is different from HTTP/HTTPS one
|
# Uncommment this line below if your ssh host is different from HTTP/HTTPS one
|
||||||
# (you'd obviously need to replace ssh.host_example.com with your own host).
|
# (you'd obviously need to replace ssh.host_example.com with your own host).
|
||||||
|
@ -67,8 +67,8 @@ production: &base
|
||||||
# Uncomment and set to false if you need to disable email sending from GitLab (default: true)
|
# Uncomment and set to false if you need to disable email sending from GitLab (default: true)
|
||||||
# email_enabled: true
|
# email_enabled: true
|
||||||
# Email address used in the "From" field in mails sent by GitLab
|
# Email address used in the "From" field in mails sent by GitLab
|
||||||
email_from: git@actcur.com
|
email_from: notifications@actcur.com
|
||||||
email_display_name: GitLab
|
email_display_name: Actcur Git
|
||||||
email_reply_to: noreply@actcur.com
|
email_reply_to: noreply@actcur.com
|
||||||
email_subject_suffix: ''
|
email_subject_suffix: ''
|
||||||
|
|
||||||
|
|
|
@ -12,13 +12,12 @@ if Rails.env.production?
|
||||||
|
|
||||||
ActionMailer::Base.delivery_method = :smtp
|
ActionMailer::Base.delivery_method = :smtp
|
||||||
ActionMailer::Base.smtp_settings = {
|
ActionMailer::Base.smtp_settings = {
|
||||||
|
authentication: :plain,
|
||||||
address: "smtp.zoho.com",
|
address: "smtp.zoho.com",
|
||||||
port: 587,
|
port: 587,
|
||||||
user_name: "gitlab@actcur.com",
|
user_name: "notifications@actcur.com",
|
||||||
password: "{%- include 'secure/gitlab_smtp_password.txt' -%}",
|
password: "{%- include 'secure/gitlab_smtp_password.txt' -%}",
|
||||||
domain: "zoho.com",
|
domain: "smtp.zoho.com",
|
||||||
authentication: :plain,
|
|
||||||
enable_starttls_auto: true,
|
enable_starttls_auto: true,
|
||||||
openssl_verify_mode: 'peer' # See ActionMailer documentation for other possible options
|
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
|
@ -19,6 +19,7 @@ gitlab_nginx:
|
||||||
- user: root
|
- user: root
|
||||||
- group: root
|
- group: root
|
||||||
- mode: 644
|
- mode: 644
|
||||||
|
- template: jinja
|
||||||
/etc/webapps/gitlab/resque.yml:
|
/etc/webapps/gitlab/resque.yml:
|
||||||
file.managed:
|
file.managed:
|
||||||
- source: salt://roles/maintain/gitlab/conf_files/resque.yml
|
- source: salt://roles/maintain/gitlab/conf_files/resque.yml
|
||||||
|
@ -36,8 +37,8 @@ gitlab_nginx:
|
||||||
- source: salt://roles/maintain/gitlab/conf_files/smtp_settings.rb
|
- source: salt://roles/maintain/gitlab/conf_files/smtp_settings.rb
|
||||||
- user: root
|
- user: root
|
||||||
- group: root
|
- group: root
|
||||||
- template: jinja
|
|
||||||
- mode: 644
|
- mode: 644
|
||||||
|
- template: jinja
|
||||||
/usr/share/webapps/gitlab/config/environments/production.rb:
|
/usr/share/webapps/gitlab/config/environments/production.rb:
|
||||||
file.managed:
|
file.managed:
|
||||||
- source: salt://roles/maintain/gitlab/conf_files/production.rb
|
- source: salt://roles/maintain/gitlab/conf_files/production.rb
|
||||||
|
|
|
@ -26,6 +26,10 @@ nginx:
|
||||||
|
|
||||||
{##ensure that nginx pillar exists##}
|
{##ensure that nginx pillar exists##}
|
||||||
{%- if pillar['nginx'] is defined -%}
|
{%- if pillar['nginx'] is defined -%}
|
||||||
|
{%- set resolver = salt['dnsutil.A']('r.actcur.com')[0] -%}
|
||||||
|
{%- if resolver|string() == "U" -%}
|
||||||
|
{%- set resolver = "172.16.40.20" -%}
|
||||||
|
{%- endif -%}
|
||||||
|
|
||||||
{##set up conf files for this server##}
|
{##set up conf files for this server##}
|
||||||
{%- for name in pillar['nginx'] %}
|
{%- for name in pillar['nginx'] %}
|
||||||
|
@ -57,7 +61,7 @@ nginx:
|
||||||
- template: jinja
|
- template: jinja
|
||||||
- context:
|
- context:
|
||||||
server: {{ name }}
|
server: {{ name }}
|
||||||
resolver: {{ salt['dnsutil.A']('r.actcur.com')[0] }}
|
resolver: {{ resolver }}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
|
@ -72,7 +76,7 @@ nginx:
|
||||||
- mode: 644
|
- mode: 644
|
||||||
- template: jinja
|
- template: jinja
|
||||||
- context:
|
- context:
|
||||||
resolver: {{ salt['dnsutil.A']('r.actcur.com')[0] }}
|
resolver: {{ resolver }}
|
||||||
|
|
||||||
"/etc/nginx/certs/portal.actcur.com/":
|
"/etc/nginx/certs/portal.actcur.com/":
|
||||||
file.recurse:
|
file.recurse:
|
||||||
|
|
Loading…
Add table
Reference in a new issue