- ----------
- State: - file
- Name: /etc/ceph/ceph.conf
- Function: managed
- Result: True
- Comment: File /etc/ceph/ceph.conf updated
- Changes: diff: ---
- +++
- @@ -9,7 +9,7 @@
- [mon.a]
- host = nginx1.srv
- - mon addr = <function ip_addrs at 0x9d30a3c>:6789
- + mon addr = 127.0.0.1:6789
- [osd.0]
- host = nginx1.srv
- @@ -19,4 +19,3 @@
- [mds.a]
- host = nginx1.srv
- -
This is what I got after replacing this Jinja print expression with '127.0.0.1':: (state change here:)
<code>
-- a/ceph/ceph.conf-eval.jinja
+++ b/ceph/ceph.conf-eval.jinja
@@ -9,7 +9,7 @@
[mon.a]
host = {{ grains['localhost'] }}
- mon addr = {{ salt['network.ip_addrs'][-1] }}:6789
+ mon addr = 127.0.0.1:6789
[osd.0]
</code>