summaryrefslogtreecommitdiff
path: root/Property/Hostname.hs
blob: 3d9d2ad028bdfae676feb01c1b27b7733c6bedfe (plain)
1
2
3
4
5
6
7
8
9
10
11
module Property.Hostname where

import Common
import qualified Property.File as File

type HostName = String

set :: HostName -> Property
set hostname = "/etc/hostname" `File.hasContent` [hostname]
	`onChange` cmdProperty "hostname" [Param hostname]
	`describe` ("hostname " ++ hostname)