summaryrefslogtreecommitdiff
path: root/Propellor
diff options
context:
space:
mode:
authorJoey Hess2014-04-19 01:28:46 -0400
committerJoey Hess2014-04-19 01:28:46 -0400
commit9e578aca6b0914443c95f8691fd3ba39522f28fc (patch)
treef4f0882539dc5798af97d833fe0bd3d8b3e0df2f /Propellor
parentd1db64b3bc4ef1c802344f666eb160d9a8c97cca (diff)
rename aka to alias
Diffstat (limited to 'Propellor')
-rw-r--r--Propellor/Attr.hs4
-rw-r--r--Propellor/Property/Dns.hs4
-rw-r--r--Propellor/Property/Docker.hs4
3 files changed, 6 insertions, 6 deletions
diff --git a/Propellor/Attr.hs b/Propellor/Attr.hs
index a54d8833..fb94dc34 100644
--- a/Propellor/Attr.hs
+++ b/Propellor/Attr.hs
@@ -42,8 +42,8 @@ ipv6 addr = pureAttrProperty ("ipv6 " ++ addr)
(addDNS $ Address $ IPv6 addr)
-- | Indicates another name for the host in the DNS.
-aka :: Domain -> Property
-aka domain = pureAttrProperty ("aka " ++ domain)
+alias :: Domain -> Property
+alias domain = pureAttrProperty ("aka " ++ domain)
(addDNS $ CNAME $ AbsDomain domain)
addDNS :: Record -> SetAttr
diff --git a/Propellor/Property/Dns.hs b/Propellor/Property/Dns.hs
index 90556d2d..e47d6c32 100644
--- a/Propellor/Property/Dns.hs
+++ b/Propellor/Property/Dns.hs
@@ -30,7 +30,7 @@ import Data.List
--
-- > host "foo.example.com"
-- > & ipv4 "192.168.1.1"
--- > & aka "mail.exmaple.com"
+-- > & alias "mail.exmaple.com"
--
-- Will cause that hostmame and its alias to appear in the zone file,
-- with the configured IP address.
@@ -134,7 +134,7 @@ namedConfFile = "/etc/bind/named.conf.local"
-- repository to the SerialNumber.
--
-- Handy trick: You don't need to list IPAddrs in the [Record],
--- just make some Host sets its `aka` to the root of domain.
+-- just make some Host sets its `alias` to the root of domain.
mkSOA :: Domain -> SerialNumber -> [Record] -> SOA
mkSOA d sn rs = SOA
{ sDomain = AbsDomain d
diff --git a/Propellor/Property/Docker.hs b/Propellor/Property/Docker.hs
index e05a8dd3..e5b8d64a 100644
--- a/Propellor/Property/Docker.hs
+++ b/Propellor/Property/Docker.hs
@@ -183,8 +183,8 @@ memory = runProp "memory"
-- | Link with another container on the same host.
link :: ContainerName -> ContainerAlias -> Property
-link linkwith alias = genProp "link" $ \hn ->
- fromContainerId (ContainerId hn linkwith) ++ ":" ++ alias
+link linkwith calias = genProp "link" $ \hn ->
+ fromContainerId (ContainerId hn linkwith) ++ ":" ++ calias
-- | A short alias for a linked container.
-- Each container has its own alias namespace.