- From: Tomasz Chmielewski <
>
- To:
- Subject: [chef] using variables in recipes?
- Date: Mon, 28 Apr 2014 03:58:40 +0100
- Domainkey-signature: a=rsa-sha1; c=nofws; d=wpkg.org; h=to:subject :mime-version:content-type:content-transfer-encoding:date:from :message-id; q=dns; s=default; b=Mb4T9/JKza1dDiV5tEM+lYjDQOm7Gsa 3gmk2zLib2ukta6C/7M53vo1pi4jGbCLXOQry4nXRn/6nRefmzV5KOj6SS60NdbX gSF4IIxwPCSPAyFE4lbcNAgNFLi/Hli7tr56EkiVLOFxKzpfE9g+iHgiAcx51j6T 7A4TYipp27G8=
How can I use the $HOSTNAME variable in a recipe?
I need something which would fit here:
remote_file "/tmp/$HOSTNAME.tar.xz" do
source
"
https://user:
:port/aaa/$HOSTNAME.tar.xz"
owner "root"
group "root"
mode 00600
not_if { ::File.exists?("/some/path/here") }
end
--
Tomasz Chmielewski
http://wpkg.org
- [chef] using variables in recipes?, Tomasz Chmielewski, 04/27/2014
Archive powered by MHonArc 2.6.16.