1. ----------
  2. State: - file
  3. Name: /etc/ceph/ceph.conf
  4. Function: managed
  5. Result: True
  6. Comment: File /etc/ceph/ceph.conf updated
  7. Changes: diff: ---
  8. +++
  9. @@ -9,7 +9,7 @@
  10. [mon.a]
  11. host = nginx1.srv
  12. - mon addr = <function ip_addrs at 0x9d30a3c>:6789
  13. + mon addr = 127.0.0.1:6789
  14. [osd.0]
  15. host = nginx1.srv
  16. @@ -19,4 +19,3 @@
  17. [mds.a]
  18. host = nginx1.srv
  19. -

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>