Sha256: b5941c0dfc1d8a500264b254f094f895578ec150b1c673078c6f5c24882a6627

Contents?: true

Size: 1.68 KB

Versions: 2

Compression:

Stored size: 1.68 KB

Contents

# System configuration
#
# This will set the locals and the timezone

- set_locales:
  # uncomment the locales
  - exec_in: |
      echo $$locales | tr ' ' '\n' | xargs -I {} localedef -v -c -i {} -i {} -f UTF-8 $$lang 2>&1 || :

- set_timezone:
  - exec_in: ln -sf /usr/share/zoneinfo/$$timezone /etc/localtime

- set_wheel_sudo:
  - exec_in: echo "%wheel      ALL=(ALL) ALL" >> /etc/sudoers

- setup_systemd:
  - exec_in: echo "Setting default runlevel to multiuser text mode"
  - exec_in: rm -f /etc/systemd/system/default.target
  - exec_in: ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
  - exec_in: systemctl daemon-reload

- disable_tmpfs_for_tmp:
  - exec_in: echo "Disabling tmpfs for /tmp."
  - exec_in: systemctl mask tmp.mount

- remove_random_seed:
  - exec_in: echo "Removing random-seed so it's not the same in every image."
  - exec_in: rm -f /var/lib/random-seed

- compress_cracklib:
  - exec_in: gzip -9 /usr/share/cracklib/pw_dict.pwd

- enable_ntpdate_service:
  - exec_in: systemctl enable ntpdate.service

- selinux: permissive
- selinuxtype: targeted

- configure_selinux:
  - write_in:
    - /etc/selinux/config
    - |
      # This file controls the state of SELinux on the system.
      # SELINUX= can take one of these three values:
      #       enforcing - SELinux security policy is enforced.
      #       permissive - SELinux prints warnings instead of enforcing.
      #       disabled - SELinux is fully disabled.
      SELINUX=$$selinux
      # SELINUXTYPE= type of policy in use. Possible values are:
      #       targeted - Only targeted network daemons are protected.
      #       strict - Full SELinux protection.
      SELINUXTYPE=$$selinuxtype

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kameleon-builder-2.2.5 templates/steps/setup/fedora/configure_system.yaml
kameleon-builder-2.2.4 templates/steps/setup/fedora/configure_system.yaml