Add all hosts to known_hosts automatically

	- optimize known_hosts.present state
	- add ability to define port
	- remove undefined known_hosts if enabled

Related: PROD-25697

Change-Id: Idbaeac91d271693905b53eccf8f6249e7aa274e7
diff --git a/tests/pillar/client.sls b/tests/pillar/client.sls
index bf746d9..b124cc3 100644
--- a/tests/pillar/client.sls
+++ b/tests/pillar/client.sls
@@ -9,6 +9,32 @@
         uid: 9999
         full_name: Test User
         home: /home/testusername
+  network:
+    host:
+      cfg:
+        address:
+            10.11.0.15
+        names:
+            - cfg
+            - cfg.example.com
+      ctl01:
+        address:
+            10.11.0.11
+        names:
+            - ctl01
+            - ctl01.example.com
+      ctl02:
+        address:
+            10.11.0.12
+        names:
+            - ctl02
+            - ctl02.example.com
+      ctl03:
+        address:
+            10.11.0.13
+        names:
+            - ctl03
+            - ctl03.example.com
 openssh:
   client:
     enabled: true
@@ -17,11 +43,12 @@
         enabled: true
         # Include from linux.system.user structure
         user: *_user
-    known_hosts:
-    - name: repo.domain.com
-      type: rsa
-      fingerprint: dd:fa:e8:68:b1:ea:ea:a0:63:f1:5a:55:48:e1:7e:37
-    alive:
-      interval: 600
-      count: 3
-
+        purge_undefined: true
+        known_hosts:
+        - name: localhost
+          type: rsa
+          fingerprint: dd:fa:e8:68:b1:ea:ea:a0:63:f1:5a:55:48:e1:7e:37
+        - name: 127.0.0.1
+          port: 22
+          type: ssh-rsa
+          host_public_key: AAA...fkP