hilfe mein git ist komisch
This commit is contained in:
71
etc/cloud/cloud.cfg.d/05_logging.cfg
Normal file
71
etc/cloud/cloud.cfg.d/05_logging.cfg
Normal file
@@ -0,0 +1,71 @@
|
||||
## This yaml formatted config file handles setting
|
||||
## logger information. The values that are necessary to be set
|
||||
## are seen at the bottom. The top '_log' are only used to remove
|
||||
## redundancy in a syslog and fallback-to-file case.
|
||||
##
|
||||
## The 'log_cfgs' entry defines a list of logger configs
|
||||
## Each entry in the list is tried, and the first one that
|
||||
## works is used. If a log_cfg list entry is an array, it will
|
||||
## be joined with '\n'.
|
||||
_log:
|
||||
- &log_base |
|
||||
[loggers]
|
||||
keys=root,cloudinit
|
||||
|
||||
[handlers]
|
||||
keys=consoleHandler,cloudLogHandler
|
||||
|
||||
[formatters]
|
||||
keys=simpleFormatter,arg0Formatter
|
||||
|
||||
[logger_root]
|
||||
level=DEBUG
|
||||
handlers=consoleHandler,cloudLogHandler
|
||||
|
||||
[logger_cloudinit]
|
||||
level=DEBUG
|
||||
qualname=cloudinit
|
||||
handlers=
|
||||
propagate=1
|
||||
|
||||
[handler_consoleHandler]
|
||||
class=StreamHandler
|
||||
level=WARNING
|
||||
formatter=arg0Formatter
|
||||
args=(sys.stderr,)
|
||||
|
||||
[formatter_arg0Formatter]
|
||||
format=%(asctime)s - %(filename)s[%(levelname)s]: %(message)s
|
||||
|
||||
[formatter_simpleFormatter]
|
||||
format=[CLOUDINIT] %(filename)s[%(levelname)s]: %(message)s
|
||||
- &log_file |
|
||||
[handler_cloudLogHandler]
|
||||
class=FileHandler
|
||||
level=DEBUG
|
||||
formatter=arg0Formatter
|
||||
args=('/var/log/cloud-init.log', 'a', 'UTF-8')
|
||||
- &log_syslog |
|
||||
[handler_cloudLogHandler]
|
||||
class=handlers.SysLogHandler
|
||||
level=DEBUG
|
||||
formatter=simpleFormatter
|
||||
args=("/dev/log", handlers.SysLogHandler.LOG_USER)
|
||||
|
||||
log_cfgs:
|
||||
# Array entries in this list will be joined into a string
|
||||
# that defines the configuration.
|
||||
#
|
||||
# If you want logs to go to syslog, uncomment the following line.
|
||||
# - [ *log_base, *log_syslog ]
|
||||
#
|
||||
# The default behavior is to just log to a file.
|
||||
# This mechanism that does not depend on a system service to operate.
|
||||
- [ *log_base, *log_file ]
|
||||
# A file path can also be used.
|
||||
# - /etc/log.conf
|
||||
|
||||
# This tells cloud-init to redirect its stdout and stderr to
|
||||
# 'tee -a /var/log/cloud-init-output.log' so the user can see output
|
||||
# there without needing to look on the console.
|
||||
output: {all: '| tee -a /var/log/cloud-init-output.log'}
|
||||
2
etc/cloud/cloud.cfg.d/90_dpkg.cfg
Normal file
2
etc/cloud/cloud.cfg.d/90_dpkg.cfg
Normal file
@@ -0,0 +1,2 @@
|
||||
# to update this file, run dpkg-reconfigure cloud-init
|
||||
datasource_list: [ NoCloud, ConfigDrive, OpenNebula, DigitalOcean, Azure, AltCloud, VMware, OVF, MAAS, GCE, OpenStack, CloudSigma, SmartOS, Bigstep, Scaleway, AliYun, Ec2, CloudStack, Hetzner, IBMCloud, Oracle, Exoscale, RbxCloud, UpCloud, Vultr, LXD, NWCS, Akamai, WSL, CloudCIX, None ]
|
||||
19
etc/cloud/cloud.cfg.d/99_custom_networking.cfg
Normal file
19
etc/cloud/cloud.cfg.d/99_custom_networking.cfg
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
|
||||
|
||||
network:
|
||||
version: 2
|
||||
|
||||
renderer: networkd
|
||||
|
||||
ethernets:
|
||||
|
||||
all-en:
|
||||
match:
|
||||
name: "en*"
|
||||
dhcp4: true
|
||||
dhcp6: true
|
||||
|
||||
|
||||
|
||||
# vim: ts=2 sw=2 sts=2 et
|
||||
90
etc/cloud/cloud.cfg.d/99_ionos.cfg
Normal file
90
etc/cloud/cloud.cfg.d/99_ionos.cfg
Normal file
@@ -0,0 +1,90 @@
|
||||
datasource_list: [ ConfigDrive, NoCloud ]
|
||||
disable_ec2_metadata: True
|
||||
|
||||
user: root
|
||||
ssh_pwauth: False
|
||||
disable_root: False
|
||||
manage_etc_hosts: False
|
||||
|
||||
system_info:
|
||||
default_user:
|
||||
name: root
|
||||
lock_passwd: False
|
||||
|
||||
distro: ubuntu
|
||||
paths:
|
||||
cloud_dir: /var/lib/cloud/
|
||||
templates_dir: /etc/cloud/templates/
|
||||
|
||||
upstart_dir: /etc/init/
|
||||
|
||||
|
||||
|
||||
cloud_init_modules:
|
||||
- migrator
|
||||
- seed_random
|
||||
- bootcmd
|
||||
- write-files
|
||||
- growpart
|
||||
- resizefs
|
||||
- disk_setup
|
||||
- mounts
|
||||
- ca-certs
|
||||
- rsyslog
|
||||
- users-groups
|
||||
- ssh
|
||||
|
||||
cloud_config_modules:
|
||||
# Emit the cloud config ready event
|
||||
# this can be used by upstart jobs for 'start on cloud-config'.
|
||||
- locale
|
||||
- set-passwords
|
||||
- ntp
|
||||
- timezone
|
||||
- disable-ec2-metadata
|
||||
- set_hostname
|
||||
- update_hostname
|
||||
- update_etc_hosts
|
||||
- runcmd
|
||||
|
||||
|
||||
- emit_upstart
|
||||
- grub-dpkg
|
||||
- apt-pipelining
|
||||
- apt-configure
|
||||
- byobu
|
||||
|
||||
|
||||
- snap
|
||||
- ubuntu-advantage
|
||||
|
||||
|
||||
# The modules that run in the 'final' stage
|
||||
cloud_final_modules:
|
||||
- package-update-upgrade-install
|
||||
- write_files_deferred
|
||||
|
||||
- fan
|
||||
|
||||
- ansible
|
||||
- puppet
|
||||
- chef
|
||||
- salt-minion
|
||||
- mcollective
|
||||
- rightscale_userdata
|
||||
- scripts-vendor
|
||||
- scripts-per-once
|
||||
- scripts-per-boot
|
||||
- scripts-per-instance
|
||||
- scripts-user
|
||||
- ssh-authkey-fingerprints
|
||||
- keys-to-console
|
||||
- phone-home
|
||||
- install_hotplug
|
||||
- final-message
|
||||
- power-state-change
|
||||
|
||||
- ubuntu-drivers
|
||||
|
||||
|
||||
# vim: filetype=yaml ts=2 et
|
||||
3
etc/cloud/cloud.cfg.d/README
Normal file
3
etc/cloud/cloud.cfg.d/README
Normal file
@@ -0,0 +1,3 @@
|
||||
# All files with the '.cfg' extension in this directory will be read by
|
||||
# cloud-init. They are read in lexical order. Later files overwrite values in
|
||||
# earlier files.
|
||||
Reference in New Issue
Block a user