...
 
Commits (4)
......@@ -14,13 +14,17 @@ debomatic_old_dists:
- 'perl-5.26-throwaway'
- 'perl-5.24'
- 'perl-5.24-throwaway'
debomatic_chroots:
debomatic_nonmerge_chroots:
- 'perl-5.28'
- 'perl-5.26'
- 'experimental'
- 'sid'
- 'stretch'
- 'jessie'
debomatic_usrmerge_chroots:
- 'sid-usrmerge'
debomatic_chroots:
"{{ debomatic_nonmerge_chroots }} + {{ debomatic_usrmerge_chroots }}"
debomatic_security_supported:
- 'stretch'
- 'jessie'
......@@ -34,6 +38,7 @@ debomatic_suites:
perl-5.26: unstable
experimental: unstable
sid: unstable
sid-usrmerge: unstable
stretch: stretch
jessie: jessie
debian_mirror: http://ftp.uk.debian.org/debian/
......@@ -52,3 +57,4 @@ debomatic_gpg_config: |
Expire-Date: 1y
%commit
eatmydata_blacklist: /usr/local/share/maybe-eatmydata/blacklist.txt
mail_smarthost: urchin.earth.li
......@@ -31,9 +31,14 @@
- distributions
- file: path=/srv/debomatic state=directory owner=debomatic group=debomatic mode=2775
- file: path=/srv/debomatic/incoming state=directory owner=debomatic group=debomatic mode=2775
- command: "debootstrap --include gnupg --variant=buildd --arch {{ item[1] }} {{ debomatic_suites[item[0]] }} /srv/chroots/{{ item[0] }}-{{ item[1] }} http://localhost:3142/debian creates=/srv/chroots/{{ item[0] }}-{{ item[1] }}"
- command: "debootstrap --include gnupg --no-merged-usr --variant=buildd --arch {{ item[1] }} {{ debomatic_suites[item[0]] }} /srv/chroots/{{ item[0] }}-{{ item[1] }} http://localhost:3142/debian creates=/srv/chroots/{{ item[0] }}-{{ item[1] }}"
with_nested:
- "{{ debomatic_chroots }}"
- "{{ debomatic_nonmerge_chroots }}"
- "{{ debomatic_archs }}"
- command: "debootstrap --include gnupg --merged-usr --variant=buildd --arch {{ item[1] }} {{ debomatic_suites[item[0]] }} /srv/chroots/{{ item[0] }}-{{ item[1] }} http://localhost:3142/debian creates=/srv/chroots/{{ item[0] }}-{{ item[1] }}"
tags: foo
with_nested:
- "{{ debomatic_usrmerge_chroots }}"
- "{{ debomatic_archs }}"
- template: src=srv/chroots/etc/apt/apt.conf.d/aptcacher.j2 dest=/srv/chroots/{{ item[0] }}-{{ item[1] }}/etc/apt/apt.conf.d/aptcacher
with_nested:
......@@ -55,6 +60,8 @@
- include: http.yml
- include: reprepro.yml
when: use_reprepro
- include: no-reprepro.yml
when: not use_reprepro
- include: ui.yml
when: use_debomatic_ui
- template: src=etc/aliases.j2 dest=/etc/aliases
......
- apt: name=debian-keyring
- template: src=srv/chroots/perl-generic/etc/apt/sources.list.d/remote.list.j2 dest=/srv/chroots/perl-{{ perl_test_version }}-{{ item }}/etc/apt/sources.list.d/remote.list
with_items: "{{ debomatic_archs }}"
- get_url: url=http://perl.debian.net/test-repo.asc.sig dest=/home/debomatic/test-repo.asc.sig
check_mode: no
changed_when: False
- shell: gpg --keyring /usr/share/keyrings/debian-keyring.gpg --decrypt /home/debomatic/test-repo.asc.sig
register: debomatic_pubkey
- template: src=srv/chroots/perl-generic/etc/apt/trusted.gpg.d/ansible-perl-key.asc.j2 dest=/srv/chroots/perl-{{ perl_test_version }}-{{ item }}/etc/apt/trusted.gpg.d/ansible-perl-key.asc
with_items: "{{ debomatic_archs }}"
......@@ -18,13 +18,13 @@
# This is a Debian specific file
dc_eximconfig_configtype='satellite'
dc_other_hostnames='carme.larted.org.uk;perl.debian.net'
dc_other_hostnames='{{ inventory_hostname }};perl.debian.net'
dc_local_interfaces='127.0.0.1 ; ::1'
dc_readhost='perl.debian.net'
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='urchin.earth.li'
dc_smarthost='{{ mail_smarthost }}'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='true'
......
......@@ -15,5 +15,7 @@ tmpfs /dev/shm tmpfs defaults 0 0
# Directory name must be the same defined in debomatic.conf
/usr/share/debomatic/sbuildcommands /usr/share/debomatic/sbuildcommands none ro,bind 0 0
{% if use_reprepro %}
# Local repo for rebuild testing
/srv/reprepro /srv/reprepro none ro,bind 0 0
{% endif %}
deb http://perl.debian.net/test-repo/ perl-{{ perl_test_version }} main