diff options
Diffstat (limited to 'global/overlay')
-rw-r--r-- | global/overlay/etc/puppet/cosmos-db.yaml | 4 | ||||
-rw-r--r-- | global/overlay/etc/puppet/cosmos-rules.yaml | 3 | ||||
-rw-r--r-- | global/overlay/etc/puppet/manifests/cosmos-site.pp | 17 |
3 files changed, 24 insertions, 0 deletions
diff --git a/global/overlay/etc/puppet/cosmos-db.yaml b/global/overlay/etc/puppet/cosmos-db.yaml index cbccbb5..8531702 100644 --- a/global/overlay/etc/puppet/cosmos-db.yaml +++ b/global/overlay/etc/puppet/cosmos-db.yaml @@ -5,11 +5,13 @@ classes: lobo2.lab.sunet.se: {} md-master.reep.refeds.org: {sunet: null, swamidops: null} mdx1.swamid.se: + dockerhost: null mailclient: &id001 {domain: sunet.se} signer: null sunet: null swamidops: null mdx2.swamid.se: + dockerhost: null mailclient: *id001 signer: null sunet: null @@ -21,6 +23,7 @@ classes: random1.nordu.net: {entropyserver: null, quantis: null, sunet: null} random2.nordu.net: {entropyserver: null, quantis: null, sunet: null} registry.swamid.se: + dockerhost: null mailclient: *id001 sunet: null swamidops: null @@ -51,6 +54,7 @@ members: dane.lab.sunet.se, sto-tug-kvm-lab1.swamid.se, random1.nordu.net, wp.sunet.se, registry.swamid.se, lobo2.lab.sunet.se, sto-fre-kvm1.swamid.se, md-master.reep.refeds.org, mdx2.swamid.se, cdr2.sunet.se, mdx1.swamid.se, sto-tug-kvm-lab2.swamid.se, random2.nordu.net] + dockerhost: [registry.swamid.se, mdx2.swamid.se, mdx1.swamid.se] entropyserver: [random1.nordu.net, random2.nordu.net] mailclient: [meta.swamid.se, sto-tug-kvm1.swamid.se, samltest.swamid.se, sto-tug-kvm-lab1.swamid.se, registry.swamid.se, sto-fre-kvm1.swamid.se, mdx2.swamid.se, mdx1.swamid.se, sto-tug-kvm-lab2.swamid.se] diff --git a/global/overlay/etc/puppet/cosmos-rules.yaml b/global/overlay/etc/puppet/cosmos-rules.yaml index 86f38bf..1112bdf 100644 --- a/global/overlay/etc/puppet/cosmos-rules.yaml +++ b/global/overlay/etc/puppet/cosmos-rules.yaml @@ -7,10 +7,13 @@ mailclient: domain: sunet.se registry.swamid.se: + dockerhost: webserver: mdx1.swamid.se: + dockerhost: signer: mdx2.swamid.se: + dockerhost: signer: md-master.reep.refeds.org: sunet: diff --git a/global/overlay/etc/puppet/manifests/cosmos-site.pp b/global/overlay/etc/puppet/manifests/cosmos-site.pp index ccd96ec..706c77b 100644 --- a/global/overlay/etc/puppet/manifests/cosmos-site.pp +++ b/global/overlay/etc/puppet/manifests/cosmos-site.pp @@ -19,6 +19,23 @@ node default { } +class dockerhost { + apt::source {'docker_official': + comment => 'Docker official repository', + location => 'https://get.docker.com/ubuntu', + release => 'docker', + repos => 'main', + key => 'A88D21E9', + include_src => false + } + package {'lxc-docker': + ensure => latest + } + class {'docker': + manage_package => false + } +} + class webserver { ufw::allow { "allow-http": ip => 'any', |