mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
Refactored examples
This commit is contained in:
2
examples/apt/apt.conf.d/99parallel-fetch
Normal file
2
examples/apt/apt.conf.d/99parallel-fetch
Normal file
@@ -0,0 +1,2 @@
|
||||
APT::Acquire::Queue-Mode "access";
|
||||
APT::Acquire::Retries 3;
|
||||
11
examples/apt/preferences.d/debian-release-pinning
Normal file
11
examples/apt/preferences.d/debian-release-pinning
Normal file
@@ -0,0 +1,11 @@
|
||||
Package: *
|
||||
Pin: release a=stable
|
||||
Pin-Priority: 990
|
||||
|
||||
Package: *
|
||||
Pin: release a=testing
|
||||
Pin-Priority: 490
|
||||
|
||||
Package: *
|
||||
Pin: release a=unstable
|
||||
Pin-Priority: -1
|
||||
3
examples/apt/preferences.d/firefox-pinning
Normal file
3
examples/apt/preferences.d/firefox-pinning
Normal file
@@ -0,0 +1,3 @@
|
||||
Package: firefox
|
||||
Pin: release a=unstable
|
||||
Pin-Priority: 990
|
||||
8
examples/apt/sources.list.d/debian-bullseye.list
Normal file
8
examples/apt/sources.list.d/debian-bullseye.list
Normal file
@@ -0,0 +1,8 @@
|
||||
deb http://deb.debian.org/debian/ bullseye main non-free contrib
|
||||
deb http://security.debian.org/debian-security bullseye-security main contrib non-free
|
||||
|
||||
# bullseye-updates, previously known as 'volatile'
|
||||
deb http://deb.debian.org/debian/ bullseye-updates main contrib non-free
|
||||
|
||||
# bullseye-backports, previously on backports.debian.org
|
||||
deb http://deb.debian.org/debian/ bullseye-backports main contrib non-free
|
||||
7
examples/apt/sources.list.d/debian-buster.list
Normal file
7
examples/apt/sources.list.d/debian-buster.list
Normal file
@@ -0,0 +1,7 @@
|
||||
deb http://deb.debian.org/debian/ buster main non-free contrib
|
||||
|
||||
# buster-updates, previously known as 'volatile'
|
||||
deb http://deb.debian.org/debian/ buster-updates main contrib non-free
|
||||
|
||||
# buster-backports, previously on backports.debian.org
|
||||
deb http://deb.debian.org/debian/ buster-backports main contrib non-free
|
||||
4
examples/apt/sources.list.d/debian-stable.list
Normal file
4
examples/apt/sources.list.d/debian-stable.list
Normal file
@@ -0,0 +1,4 @@
|
||||
deb http://deb.debian.org/debian/ stable main non-free contrib
|
||||
|
||||
# stable-updates, previously known as 'volatile'
|
||||
deb http://deb.debian.org/debian/ stable-updates main contrib non-free
|
||||
5
examples/apt/sources.list.d/debian-testing.list
Normal file
5
examples/apt/sources.list.d/debian-testing.list
Normal file
@@ -0,0 +1,5 @@
|
||||
deb http://deb.debian.org/debian/ testing main non-free contrib
|
||||
deb http://security.debian.org/debian-security testing-security main contrib non-free
|
||||
|
||||
# testing-updates, previously known as 'volatile'
|
||||
deb http://deb.debian.org/debian/ testing-updates main contrib non-free
|
||||
1
examples/apt/sources.list.d/debian-unstable.list
Normal file
1
examples/apt/sources.list.d/debian-unstable.list
Normal file
@@ -0,0 +1 @@
|
||||
deb http://deb.debian.org/debian/ unstable main non-free contrib
|
||||
1
examples/apt/sources.list.d/dropbox.list
Normal file
1
examples/apt/sources.list.d/dropbox.list
Normal file
@@ -0,0 +1 @@
|
||||
deb [arch=i386,amd64] http://linux.dropbox.com/debian sid main
|
||||
23
examples/cloud-init/base.yaml
Normal file
23
examples/cloud-init/base.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
#cloud-config
|
||||
|
||||
# Upgrade the instance.
|
||||
# Deactivated, as this could take a long time if the image is old.
|
||||
#
|
||||
# Sources:
|
||||
# - https://cloudinit.readthedocs.io/en/latest/topics/modules.html#package-update-upgrade-install
|
||||
# - https://cloudinit.readthedocs.io/en/latest/topics/examples.html#run-apt-or-yum-upgrade
|
||||
package_upgrade: false
|
||||
package_reboot_if_required: false
|
||||
|
||||
# Install required packages.
|
||||
# This will *always* update the list of packages, regardless of the value of the
|
||||
# 'package_update' setting.
|
||||
#
|
||||
# Sources:
|
||||
# - https://cloudinit.readthedocs.io/en/latest/topics/modules.html#package-update-upgrade-install
|
||||
# - https://cloudinit.readthedocs.io/en/latest/topics/examples.html#install-arbitrary-packages
|
||||
packages:
|
||||
- jq
|
||||
- nc
|
||||
- traceroute
|
||||
- unzip
|
||||
42
examples/cloud-init/docker.yum.yaml
Normal file
42
examples/cloud-init/docker.yum.yaml
Normal file
@@ -0,0 +1,42 @@
|
||||
#cloud-config
|
||||
|
||||
# Sources:
|
||||
# - https://github.com/trajano/terraform-docker-swarm-aws/blob/master/common.cloud-config
|
||||
|
||||
# Add the official Docker repository.
|
||||
#
|
||||
# Got from the official installation guide at
|
||||
# https://docs.docker.com/engine/install/rhel/#install-using-the-repository :
|
||||
# yum install -y yum-utils && \
|
||||
# yum-config-manager --add-repo \
|
||||
# https://download.docker.com/linux/rhel/docker-ce.repo && \
|
||||
# cat /etc/yum.repos.d/docker-ce.repo
|
||||
#
|
||||
# Sources:
|
||||
# - https://cloudinit.readthedocs.io/en/latest/topics/modules.html#yum-add-repo
|
||||
# - https://cloudinit.readthedocs.io/en/latest/topics/examples.html#adding-a-yum-repository
|
||||
yum_repos:
|
||||
docker-ce:
|
||||
name: Docker CE Stable - $basearch
|
||||
enabled: true
|
||||
baseurl: https://download.docker.com/linux/rhel/$releasever/$basearch/stable
|
||||
priority: 1
|
||||
gpgcheck: true
|
||||
gpgkey: https://download.docker.com/linux/rhel/gpg
|
||||
|
||||
# Install required packages.
|
||||
# This will *always* update the list of packages, regardless of the value of the
|
||||
# 'package_update' setting.
|
||||
#
|
||||
# docker-ce already depends on 'docker-ce-cli' and 'containerd.io'
|
||||
#
|
||||
# Sources:
|
||||
# - https://cloudinit.readthedocs.io/en/latest/topics/modules.html#package-update-upgrade-install
|
||||
# - https://cloudinit.readthedocs.io/en/latest/topics/examples.html#install-arbitrary-packages
|
||||
packages:
|
||||
- docker-ce
|
||||
|
||||
# Enable and start the service after installation
|
||||
runcmd:
|
||||
- systemctl daemon-reload
|
||||
- systemctl enable --now docker.service
|
||||
Reference in New Issue
Block a user