From 037351ee193665da366b2005e8d12cb7b5d93fba Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Mon, 20 Jul 2015 14:19:01 -0400 Subject: [PATCH] Add fedora support for apply-test.sh Change-Id: Id9d6e2977ff13c58f7fc6a31957a250bbe728c2e Depends-On: Ia1a72f7b7e58a4e9861c6d5916521d0c0ad7f8ec Signed-off-by: Paul Belanger --- manifests/site.pp | 1 + tools/apply-test.sh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/manifests/site.pp b/manifests/site.pp index fa66ff9803..ce96c703d9 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -802,6 +802,7 @@ node 'single-use-slave-bare' { # Node-OS: centos6 # Node-OS: centos7 +# Node-OS: fedora21 # Node-OS: precise # Node-OS: trusty # This is not meant to be an actual node that connects to the master. diff --git a/tools/apply-test.sh b/tools/apply-test.sh index 78c2255d25..fff67c3b19 100755 --- a/tools/apply-test.sh +++ b/tools/apply-test.sh @@ -79,6 +79,9 @@ if [[ `lsb_release -i -s` == 'CentOS' ]]; then fi elif [[ `lsb_release -i -s` == 'Ubuntu' ]]; then CODENAME=`lsb_release -c -s` +elif [[ `lsb_release -i -s` == 'Fedora' ]]; then + REL=`lsb_release -r -s` + CODENAME="fedora$REL" fi FOUND=0