Browse Source

current state from 2015-11-29

master
Markus Brecchtel 8 years ago
commit
ae852cd5c4
8 changed files with 48 additions and 0 deletions
  1. +1
    -0
      .gitignore
  2. +4
    -0
      defaults/main.yml
  3. +6
    -0
      files/gentoo-package.accept_keywords
  4. +4
    -0
      tasks/debian.yml
  5. +12
    -0
      tasks/gentoo.yml
  6. +13
    -0
      tasks/main.yml
  7. +7
    -0
      templates/debootstrap_args.j2
  8. +1
    -0
      vars/main.yml

+ 1
- 0
.gitignore View File

@@ -0,0 +1 @@
*~

+ 4
- 0
defaults/main.yml View File

@@ -0,0 +1,4 @@
debootstrap_suite: jessie
debootstrap_mirror: http://debian.thengo.net/debian
debootstrap_arch: amd64
debootstrap_include: {}

+ 6
- 0
files/gentoo-package.accept_keywords View File

@@ -0,0 +1,6 @@
sys-fs/unionfs-fuse
# required by app-crypt/debian-archive-keyring-2014.3::gentoo
# required by debian-archive-keyring (argument)
=app-crypt/jetring-0.21 ~amd64
# required by debian-archive-keyring (argument)
=app-crypt/debian-archive-keyring-2014.3 ~amd64

+ 4
- 0
tasks/debian.yml View File

@@ -0,0 +1,4 @@
---

- name: debian apt install debootstrap
apt: pkg=debootstrap state=installed

+ 12
- 0
tasks/gentoo.yml View File

@@ -0,0 +1,12 @@
---

- name: gentoo package.accept_keywords
copy:
src: gentoo-package.accept_keywords
dest: /etc/portage/package.accept_keywords

- name: gentoo portage install packages
portage: package={{item}} state=installed
with_items:
- dev-util/debootstrap
- app-crypt/debian-archive-keyring

+ 13
- 0
tasks/main.yml View File

@@ -0,0 +1,13 @@
---

- setup:
gather_timeout: 30

- include: debian.yml
when: ansible_os_family == "Debian"
- include: gentoo.yml
when: ansible_os_family == "Gentoo"

- name: debootstrap
command: debootstrap {{debootstrap_args}}

+ 7
- 0
templates/debootstrap_args.j2 View File

@@ -0,0 +1,7 @@
--arch={{debootstrap_arch}}
{% if debootstrap_include|length >0 %}
--include={{debootstrap_include|join(',')}}
{% endif %}
{{debootstrap_suite}}
{{debootstrap_target}}
{{debootstrap_mirror}}

+ 1
- 0
vars/main.yml View File

@@ -0,0 +1 @@
debootstrap_args: "{{ lookup('template', 'debootstrap_args.j2') }}"

Loading…
Cancel
Save