From 380c1b0fd6c25dec3c924b82f1d721aa91a001da Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 30 Mar 2014 23:37:54 -0400 Subject: prepare for hackage --- Propellor/Property/Hostname.hs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Propellor/Property/Hostname.hs (limited to 'Propellor/Property/Hostname.hs') diff --git a/Propellor/Property/Hostname.hs b/Propellor/Property/Hostname.hs new file mode 100644 index 00000000..8daf6bb2 --- /dev/null +++ b/Propellor/Property/Hostname.hs @@ -0,0 +1,9 @@ +module Propellor.Property.Hostname where + +import Propellor.Common +import qualified Propellor.Property.File as File + +set :: HostName -> Property +set hostname = "/etc/hostname" `File.hasContent` [hostname] + `onChange` cmdProperty "hostname" [Param hostname] + `describe` ("hostname " ++ hostname) -- cgit v1.2.3