Changeset 3799 in MondoRescue


Ignore:
Timestamp:
Feb 16, 2024, 12:27:34 AM (2 months ago)
Author:
Bruno Cornec
Message:

Update Mondorescue server to mga9

Location:
branches/3.3/ansible
Files:
1 deleted
10 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/ansible/inventory

    r3795 r3799  
    4747#victoria2.home.musique-ancienne.org
    4848
    49 [gitea]
    50 www.mondorescue.org
    51 
    5249[system]
    5350www.mondorescue.org
  • branches/3.3/ansible/roles/ntp/tasks/main.yml

    r3795 r3799  
    11---
    22
    3 - name: Check that ntp is installed
    4   urpmi: name=ntp state=installed no_recommends=yes
    5   tags: ntp
     3- name: Check that ntpsec is installed
     4  urpmi: name=ntpsec state=installed no_recommends=yes
    65
    76- name: Check that ntp is configured
     
    1211  notify:
    1312    - restart ntpd
    14   tags: ntp
    1513
    1614- name: Check that ntpd is running and enabled
    1715  service: name=ntpd state=started enabled=yes
    18   tags: ntp
  • branches/3.3/ansible/roles/ntp/templates/ntp.conf.j2

    r3795 r3799  
    2828#
    2929driftfile /var/lib/ntp/drift
    30 # Incorrect starting with mga9
    31 #multicastclient    224.0.1.1       # listen on default 224.0.1.1
     30multicastclient 224.0.1.1       # listen on default 224.0.1.1
    3231broadcastdelay  0.008
    3332
     
    5251# the administrative functions.
    5352restrict 127.0.0.1
    54 #restrict ::1
     53restrict ::1
  • branches/3.3/ansible/roles/pb/tasks/main.yml

    r3795 r3799  
    55  with_items:
    66    - { pkg: createrepo }
    7       # pending Mageia 9 resolution
     7      # Does exist for mga9
    88      #- { pkg: apt }
    99    - { pkg: apt-mga }
  • branches/3.3/ansible/roles/shorewall/templates/shorewall.conf.j2

    r3795 r3799  
    1313
    1414###############################################################################
    15 #                            V E R B O S I T Y
     15#                V E R B O S I T Y
    1616###############################################################################
    1717
     
    1919
    2020###############################################################################
    21 #                               P A G E R
     21#                   P A G E R
    2222###############################################################################
    2323
     
    2525
    2626###############################################################################
    27 #                            F I R E W A L L
     27#                F I R E W A L L
    2828###############################################################################
    2929
     
    3131
    3232###############################################################################
    33 #                              L O G G I N G
     33#                  L O G G I N G
    3434###############################################################################
    3535#
     
    5252LOGFILE=/var/log/messages
    5353
    54 LOGFORMAT="Shorewall:%s:%s:"
     54LOGFORMAT="Shorewall %s %s"
    5555
    5656LOGTAGONLY=No
     
    7575
    7676###############################################################################
    77 #       L O C A T I O N   O F   F I L E S   A N D   D I R E C T O R I E S
     77#   L O C A T I O N   O F   F I L E S   A N D   D I R E C T O R I E S
    7878###############################################################################
    7979
     
    109109
    110110###############################################################################
    111 #               D E F A U L T   A C T I O N S / M A C R O S
     111#       D E F A U L T   A C T I O N S / M A C R O S
    112112###############################################################################
    113113
     
    120120
    121121###############################################################################
    122 #                        R S H / R C P  C O M M A N D S
     122#            R S H / R C P  C O M M A N D S
    123123###############################################################################
    124124
     
    127127
    128128###############################################################################
    129 #                       F I R E W A L L   O P T I O N S
     129#           F I R E W A L L   O P T I O N S
    130130###############################################################################
    131131
     
    274274
    275275###############################################################################
    276 #                       P A C K E T   D I S P O S I T I O N
     276#           P A C K E T   D I S P O S I T I O N
    277277###############################################################################
    278278
     
    296296
    297297################################################################################
    298 #                       P A C K E T  M A R K  L A Y O U T
     298#           P A C K E T  M A R K  L A Y O U T
    299299################################################################################
    300300
  • branches/3.3/ansible/roles/smtp/defaults/main.yml

    r3795 r3799  
    11---
    22smtp_role: client
    3 admin_email: bruno@victoria.frmug.org
    4 include_vars: opendkim_vars.yml
  • branches/3.3/ansible/roles/trac/tasks/main.yml

    r3795 r3799  
    11---
    2 
    32- name: Check that docutils is installed
    43  urpmi: name=python-docutils state=installed no_recommends=yes
    5   tags: trac
    64
    75- name: Check that pip is installed
    86  urpmi: name=python-pip state=installed no_recommends=yes
    9   tags: trac
    107
    118- name: Install trac with fcgi
    129  urpmi: name=trac-fcgi state=installed no_recommends=yes
    13   tags: trac
    1410
    1511- name: Install trac plugins dir
     
    1713
    1814  # Do it only at upgrade of trac:
    19 - name: Install trac plugins
    20   command: pip install --no-deps --upgrade -t /usr/lib/python3.10/site-packages/ {{ item }}
    21   with_items:
    22     #- TracAccountManager # Installed from trunk
    23   - TracTags
    24   - TracRobotsTxt
    25   - TracSpamFilter
    26   - TracStats
    27   notify: upgrade trac
    28   tags: trac
     15  #- name: Install trac plugins
     16  #command: pip install --no-deps --upgrade -t /usr/lib/python3.10/site-packages/ {{ item }}
     17  #with_items:
     18  #- TracAccountManager
     19  #- TracTags
     20  #- TracRobotsTxt
     21  #- TracSpamFilter
     22  #- TracStats
     23  #notify: upgrade trac
    2924
     25  # Do it only at upgrade of trac:
    3026#- name: Upgrade trac with new plugins
    31 #  command: trac-admin {{ item }} upgrade
    32 #  with:
    33 #   - /prj/trac/mondorescue.env
    34 #   - /prj/trac/project-builder.env
    35 #   - /prj/trac/dploy.env
    36 #   - /prj/trac/pusk.env
    37 #   - /prj/trac/uuwl.env
    38 #  tags: trac
     27#  command: trac-admin /prj/trac/{{ item }}.env upgrade
     28#  loop: "{{ prj }}"
    3929
    4030- name: Configure trac
     
    4232  notify:
    4333    - restart httpd
    44   tags: trac
    4534
    46 - name: Configure trac for project-builder.org
    47   copy: src=files/project-builder.ini dest=/prj/trac/project-builder.env/conf/trac.ini owner=apache group=apache mode=0644 backup=yes
     35- name: Configure trac svn hook
     36  copy: src=templates/trac-svn-hook dest=/prj/trac/trac-svn-hook owner=apache group=apache mode=0755 backup=yes
     37
     38- name: Configure svn post-commit hook
     39  lineinfile: path="/prj/svn/{{ item }}/hooks/post-commit" state=present line='/prj/trac/trac-svn-hook $1 $2' owner=bruno group=root mode=0755 backup=yes create=true
     40  loop: "{{ prj }}"
     41
     42- name: "Configure trac ini file for the projects"
     43  copy: src="files/{{ item }}.ini" dest="/prj/trac/{{ item }}.env/conf/trac.ini" owner=apache group=apache mode=0644 backup=yes
     44  loop: "{{ prj }}"
    4845  notify:
    4946    - restart httpd
    50   tags: trac
    51 
    52 - name: Configure trac for mondorescue.org
    53   copy: src=files/mondorescue.ini dest=/prj/trac/mondorescue.env/conf/trac.ini owner=apache group=apache mode=0644 backup=yes
    54   notify:
    55     - restart httpd
    56   tags: trac
    57 
    58 - name: Configure trac for dploy.org
    59   copy: src=files/dploy.ini dest=/prj/trac/dploy.env/conf/trac.ini owner=apache group=apache mode=0644 backup=yes
    60   notify:
    61     - restart httpd
    62   tags: trac
    63 
    64 - name: Configure trac for uuwl
    65   copy: src=files/uuwl.ini dest=/prj/trac/uuwl.env/conf/trac.ini owner=apache group=apache mode=0644 backup=yes
    66   notify:
    67     - restart httpd
    68   tags: trac
    69 
    70 - name: Configure trac for pusk
    71   copy: src=files/pusk.ini dest=/prj/trac/pusk.env/conf/trac.ini owner=apache group=apache mode=0644 backup=yes
    72   notify:
    73     - restart httpd
    74   tags: trac
    7547
    7648- name: Check that trac is running and enabled
    7749  service: name=httpd state=started enabled=yes
    78   tags: trac
  • branches/3.3/ansible/roles/trac/templates/trac.ini

    r3757 r3799  
    132132email_sender = SmtpEmailSender
    133133ignore_domains =
    134 smtp_always_cc = bruno.cornec@hpe.com
     134smtp_always_cc = bruno@musique-ancienne.org
    135135smtp_enabled = true
    136136smtp_server = {{ smtp }}
  • branches/3.3/ansible/roles/urpmi/tasks/main.yml

    r3795 r3799  
    1818    - { pkg: rsyslog }
    1919    - { pkg: rsyslog-journald }
    20     - { pkg: mlocate }
     20    - { pkg: plocate }
  • branches/3.3/ansible/site.yml

    r3795 r3799  
    55- import_playbook: ntp.yml
    66- import_playbook: smtp.yml
    7   #- import_playbook: trac.yml
     7- import_playbook: trac.yml
    88- import_playbook: vsftpd.yml
    99- import_playbook: svn.yml
Note: See TracChangeset for help on using the changeset viewer.