Changeset 3656 in MondoRescue for branches


Ignore:
Timestamp:
Apr 26, 2017, 3:10:58 AM (7 years ago)
Author:
Bruno Cornec
Message:

More services up and runnig for the MondoRescue server

Location:
branches/3.3/ansible
Files:
35 added
2 deleted
11 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/ansible/group_vars/all

    r3655 r3656  
    55ip_ext: 185.170.48.239
    66ip_int: 10.11.7.195
     7smtp: mail.hpintelco.org
  • branches/3.3/ansible/httpd.yml

    r3655 r3656  
    33  roles:
    44  - httpd
     5  handlers:
     6  - include: handlers/main.yml
  • branches/3.3/ansible/inventory

    r3655 r3656  
    1616www.mondorescue.org
    1717
     18[trac]
     19www.mondorescue.org
     20
    1821[svn]
     22www.mondorescue.org
     23
     24[git]
     25www.mondorescue.org
     26
     27[rsync]
    1928www.mondorescue.org
    2029
  • branches/3.3/ansible/inventory.int

    r3655 r3656  
    1919mondo.hpintelco.org
    2020
     21[trac]
     22www.mondorescue.org
     23
    2124[svn]
     25mondo.hpintelco.org
     26
     27[git]
     28mondo.hpintelco.org
     29
     30[rsync]
    2231mondo.hpintelco.org
    2332
  • branches/3.3/ansible/roles/httpd/templates/dploy.org.conf

    r3655 r3656  
    3636    </Directory>
    3737   
    38     Alias /trac/ "/usr/share/trac/htdocs/"
    39     <Location "/cgi-bin/trac.cgi">
    40         SetEnv TRAC_ENV "/mondo/dploy/trac/dploy.env"
    41     </Location>
    42 
    4338    # You need something like this to authenticate users
    4439    <Location "/cgi-bin/trac.cgi/login">
     
    5247<VirtualHost {{ ip_int }}>
    5348    ServerName trac.dploy.org
    54     SetEnv TRAC_ENV "/mondo/dploy/trac/dploy.env"
     49    DefaultInitEnv TRAC_ENV "/mondo/dploy/trac/dploy.env"
    5550    DocumentRoot /mondo/dploy/www/cgi-bin/trac.cgi
    5651    ServerAdmin webmaster@dploy.org
  • branches/3.3/ansible/roles/httpd/templates/mondorescue.org.conf

    r3655 r3656  
    4646    ServerName trac.mondorescue.org
    4747    DocumentRoot /prj/www/html/mondorescue
     48    DefaultInitEnv TRAC_ENV "/prj/trac/mondorescue.env"
    4849    ServerAdmin webmaster@mondorescue.org
    4950    CustomLog /var/log/httpd/www.mondorescue.org/access_log combined
     
    5657    </Directory>
    5758
    58     <Location "/">
    59         SetEnv TRAC_ENV "/prj/trac/mondorescue.env"
    60     </Location>
    6159
    6260    ScriptAlias / "/var/www/cgi-bin/trac.fcgi/"
  • branches/3.3/ansible/roles/httpd/templates/project-builder.org.conf

    r3655 r3656  
    4343    ServerName trac.project-builder.org
    4444    DocumentRoot /prj/www/html/project-builder
     45    DefaultInitEnv TRAC_ENV "/prj/trac/project-builder.env"
    4546    ServerAdmin webmaster@project-builder.org
    4647    CustomLog /var/log/httpd/www.project-builder.org/access_log combined
     
    5253        Require all granted
    5354    </Directory>
    54 
    55     <Location "/">
    56         SetEnv TRAC_ENV "/prj/trac/project-builder.env"
    57     </Location>
    5855
    5956    ScriptAlias / "/var/www/cgi-bin/trac.fcgi/"
  • branches/3.3/ansible/roles/shorewall/defaults/main.yml

    r3655 r3656  
    3434  # Incoming HTTP
    3535  - { action: ACCEPT, source: net, destination: fw, protocol: tcp, destination_port: 80 }
     36  # Incoming RSYNC
     37  - { action: ACCEPT, source: net, destination: fw, protocol: tcp, destination_port: 873 }
    3638  # Incoming SVN
    3739  - { action: ACCEPT, source: net, destination: fw, protocol: tcp, destination_port: 3690 }
     
    4446  # Incoming PING
    4547  - { action: ACCEPT, source: net, destination: fw, protocol: icmp, destination_port: 8 }
     48  # Outgoing NTP
     49  - { action: ACCEPT, source: fw, destination: net, protocol: tcp, destination_port: 123 }
     50  - { action: ACCEPT, source: fw, destination: net, protocol: udp, destination_port: 123 }
    4651  # Outgoing DNS
    4752  - { action: ACCEPT, source: fw, destination: "net:{{ dns1 }}", protocol: udp, destination_port: 53 }
     
    4954  - { action: ACCEPT, source: fw, destination: "net:{{ dns1 }}", protocol: tcp, destination_port: 53 }
    5055  - { action: ACCEPT, source: fw, destination: "net:{{ dns2 }}", protocol: tcp, destination_port: 53 }
    51   # Outgoing HTTP
     56  # Outgoing HTTP/S
    5257  - { action: ACCEPT, source: fw, destination: net, protocol: tcp, destination_port: 80 }
     58  - { action: ACCEPT, source: fw, destination: net, protocol: tcp, destination_port: 443}
  • branches/3.3/ansible/roles/smtp/tasks/main.yml

    r3655 r3656  
    44  urpmi: name=postfix state=installed no-recommends=yes
    55  tags: smtp
    6 
    7 - name: DEBUG vars
    8   debug: var=hostvars[inventory_hostname] #verbosity=2
    9   #debug: var=vars #verbosity=2
    10   #debug: var=smtp_role
    11   #debug: var=smtp_server_ext
    126
    137- name: Copy postfix data files
  • branches/3.3/ansible/roles/smtp/templates/main.cf.j2

    r3655 r3656  
    2727#
    2828mynetworks = 127.0.0.0/8,  {{ ip_ext}}/32, {{ ip_int }}/26
     29relayhost = {{ smtp }}
    2930mynetworks_style = host
    3031mydestination = $myhostname, localhost.$mydomain, localhost, svn.mondorescue.org, www.mondorescue.org, ftp.mondorescue.org, mondorescue.org, trac.mondorescue.org, svn.project-builder.org, www.project-builder.org, ftp.project-builder.org, project-builder.org, trac.project-builder.org, svn.dploy.org, www.dploy.org, ftp.dploy.org, dploy.org, trac.dploy.org
    31 relayhost = mail.hpintelco.org
    3232transport_maps = hash:/etc/postfix/transport
    3333#smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
  • branches/3.3/ansible/site.yml

    r3655 r3656  
    44- include: ntp.yml
    55- include: smtp.yml
    6 - include: httpd.yml
     6- include: trac.yml
    77- include: vsftpd.yml
    88- include: svn.yml
     9- include: git.yml
     10- include: rsync.yml
Note: See TracChangeset for help on using the changeset viewer.