blob: 25f0e1b250e7f951731ebef87f346f54d3bbce38 (
plain)
1
2
3
4
5
6
7
8
9
|
module Propellor.Property.Hostname where
import Propellor
import qualified Propellor.Property.File as File
set :: HostName -> Property
set hostname = "/etc/hostname" `File.hasContent` [hostname]
`onChange` cmdProperty "hostname" [hostname]
`describe` ("hostname " ++ hostname)
|