@@ -52,3 +52,9 @@ def list_(num):
else:
break
return x
+
+def ip():
+ """
+ get public ip
+ return __salt__["http.query"]("https://checkip.amazonaws.com/", method="GET")