maas region url
diff --git a/maas/cluster.sls b/maas/cluster.sls
index f9bf31f..0d76c62 100644
--- a/maas/cluster.sls
+++ b/maas/cluster.sls
@@ -33,7 +33,7 @@
/etc/maas/rackd.conf:
file.line:
- - content: 'maas_url: {{ cluster.region.host }}/MAAS'
+ - content: 'maas_url: http://{{ cluster.region.host }}/MAAS'
- match: 'maas_url*'
- mode: replace
- location: end
diff --git a/metadata/service/cluster/single.yml b/metadata/service/cluster/single.yml
index 1097e23..4c1fa5a 100644
--- a/metadata/service/cluster/single.yml
+++ b/metadata/service/cluster/single.yml
@@ -6,5 +6,6 @@
maas:
cluster:
enabled: true
- port: 80
- host: localhost
\ No newline at end of file
+ region:
+ port: 80
+ host: localhost
\ No newline at end of file
diff --git a/tests/pillar/maas_cluster.sls b/tests/pillar/maas_cluster.sls
index 16fdec6..2c552f2 100644
--- a/tests/pillar/maas_cluster.sls
+++ b/tests/pillar/maas_cluster.sls
@@ -2,6 +2,9 @@
cluster:
enabled: true
role: slave
+ region:
+ port: 80
+ host: localhost
region:
bind:
host: localhost