Sha256: 2320f5b4b70bcbe608b8b6a5ce80fe6eeaf698625037304fa7471fbed57016da

Contents?: true

Size: 1.55 KB

Versions: 2

Compression:

Stored size: 1.55 KB

Contents

# # Bootstrap
- include: >
    yum initscripts passwd rsyslog vim-minimal dhclient chkconfig rootfiles
    policycoreutils fedora-release openssh-server net-tools nc traceroute
- bootstrap_fedora:
  - check_cmd_out: yum
  - check_cmd_out: curl
  - exec_out: test -f "$$rootfs_archive" || mkdir -p $(dirname "$$rootfs_archive")
  - exec_out: test -f "$$rootfs_archive" || ROOTFS=$(dirname "$$rootfs_archive")/rootfs
  - exec_out: test -f "$$rootfs_archive" || mkdir -p $ROOTFS
  - exec_out: test -f "$$rootfs_archive" || echo "Fetching release mirror"
  - exec_out: test -f "$$rootfs_archive" || MIRROR_URL=$(curl -s -S -f "$$mirrorlist_url" | head -n2 | tail -n1)
  - exec_out: test -f "$$rootfs_archive" || RELEASE_URL="$MIRROR_URL/Packages/f/fedora-release-$${release}-1.noarch.rpm"
  - exec_out: test -f "$$rootfs_archive" || echo "Fetching from $RELEASE_URL"
  - exec_out: test -f "$$rootfs_archive" || curl -sf "$RELEASE_URL" > "$(basename $RELEASE_URL)" 2> /dev/null
  - exec_out: test -f "$$rootfs_archive" || mkdir -p $ROOTFS/var/lib/rpm
  - exec_out: test -f "$$rootfs_archive" || rpm --root $ROOTFS --initdb
  - exec_out: test -f "$$rootfs_archive" || rpm --root $ROOTFS -ivh "$(basename $RELEASE_URL)"
  - exec_out: test -f "$$rootfs_archive" || yum --installroot $ROOTFS -y --nogpgcheck install $$include
  - exec_out: test -f "$$rootfs_archive" || cat /etc/resolv.conf > $ROOTFS/etc/resolv.conf
  - exec_out: test -f "$$rootfs_archive" || tar zcf "$$rootfs_archive" -C "$ROOTFS" --numeric-owner --one-file-system .
  - exec_out: test -f "$$rootfs_archive" || rm -fr $ROOTFS

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kameleon-builder-2.0.0 templates/steps/bootstrap/fedora/yum_bootstrap.yaml
kameleon-builder-2.0.0.dev templates/steps/bootstrap/fedora/yum_bootstrap.yaml