diff --git a/Makefile b/Makefile index a2003dcc..fb5fc09f 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,7 @@ TYPEDIR=cdist/conf/type WEBSRCDIR=docs/web -WEBDIR=$$HOME/www.nico.schottelius.org +WEBDIR=$$HOME/vcs/www.nico.schottelius.org WEBBLOG=$(WEBDIR)/blog WEBBASE=$(WEBDIR)/software/cdist WEBPAGE=$(WEBBASE).mdwn diff --git a/cdist/conf/type/__consul/files/versions/0.5.1/cksum b/cdist/conf/type/__consul/files/versions/0.5.1/cksum new file mode 100644 index 00000000..a176ed43 --- /dev/null +++ b/cdist/conf/type/__consul/files/versions/0.5.1/cksum @@ -0,0 +1 @@ +2564582176 18232733 consul diff --git a/cdist/conf/type/__consul/files/versions/0.5.1/source b/cdist/conf/type/__consul/files/versions/0.5.1/source new file mode 100644 index 00000000..f02a1103 --- /dev/null +++ b/cdist/conf/type/__consul/files/versions/0.5.1/source @@ -0,0 +1 @@ +https://dl.bintray.com/mitchellh/consul/0.5.1_linux_amd64.zip diff --git a/cdist/conf/type/__consul/manifest b/cdist/conf/type/__consul/manifest index 1cbc5413..ea1a728f 100755 --- a/cdist/conf/type/__consul/manifest +++ b/cdist/conf/type/__consul/manifest @@ -43,7 +43,9 @@ if [ ! -d "$version_dir" ]; then exit 1 fi -__staged_file /usr/local/bin/consul \ +__package unzip + +require="__package/unzip" __staged_file /usr/local/bin/consul \ --source "$(cat "$version_dir/source")" \ --cksum "$(cat "$version_dir/cksum")" \ --fetch-command 'curl -s -L "%s"' \ diff --git a/cdist/conf/type/__locale/manifest b/cdist/conf/type/__locale/manifest index e7230f9c..0e279630 100644 --- a/cdist/conf/type/__locale/manifest +++ b/cdist/conf/type/__locale/manifest @@ -1,6 +1,7 @@ #!/bin/sh # # 2013-2015 Nico Schottelius (nico-cdist at schottelius.org) +# 2015 David Hürlimann (david at ungleich.ch) # # This file is part of cdist. # @@ -29,7 +30,7 @@ case "$os" in # Debian needs a seperate package __package locales --state present ;; - archlinux|suse|ubuntu) + archlinux|suse|ubuntu|centos) : ;; *) diff --git a/cdist/conf/type/__staged_file/gencode-local b/cdist/conf/type/__staged_file/gencode-local index 87d79f4c..1a236789 100755 --- a/cdist/conf/type/__staged_file/gencode-local +++ b/cdist/conf/type/__staged_file/gencode-local @@ -1,6 +1,7 @@ #!/bin/sh # # 2015 Steven Armstrong (steven-cdist at armstrong.cc) +# 2015 Nico Schottelius (nico-cdist at schottelius.org) # # This file is part of cdist. # @@ -74,7 +75,7 @@ cat << DONE verify_cksum() { cksum_is="\$(cksum "$stage_file" | cut -d' ' -f1,2)" cksum_should="$(cat "$__object/parameter/cksum" | cut -d' ' -f1,2)" - if [ "\$cksum_is" == "\$cksum_should" ]; then + if [ "\$cksum_is" = "\$cksum_should" ]; then return 0 else return 1 diff --git a/docs/changelog b/docs/changelog index 0b010a17..de0cbe13 100644 --- a/docs/changelog +++ b/docs/changelog @@ -13,10 +13,15 @@ Changelog * Core: Integrate initial install support (Nico Schottelius) * Core: Integrate initial preos support (Nico Schottelius) -next: +3.1.13: 2015-05-16 * Type __block: Fix support for non stdin blocks (Dominique Roux) + * Type __consul: Install package unzip (Nico Schottelius) + * Type __consul: Add source & cksum for 0.5.1 (Nico Schottelius) * Type __consul_agent: Use systemd for Debian 8 (Nico Schottelius) - * Type __firewalld_rule: Ensure firewalld is present (David Hürlimann) + * Type __firewalld_rule: Ensure firewalld package is present (David Hürlimann) + * Type __locale: Support CentOS (David Hürlimann) + * Type __staged_file: Fix comparision operator (Nico Schottelius) + * Type __user_groups: Support old Linux versions (Daniel Heule) 3.1.12: 2015-03-19 * Core: Support object ids '.cdist' (Nico Schottelius)