[root@localhost ~]# cat .fog
:default:
:vsphere_server: 192.168.0.108
:vsphere_username: root
:vsphere_password: vmware
:vsphere_expected_pubkey_hash: 24f87c40cea28c2620dc372d914a3bb5ad06fddb9f131909c1441061566a79a1
[root@localhost ~]#
[root@localhost ~]# puppet node_vmware list
Notice: Connecting ...
Notice: Connected to 192.168.0.108 as root (API version 4.1)
Notice: Finding all Virtual Machines ... (Started at 10:40:20 AM)
Notice: Control will be returned to you in 10 minutes at 10:50 AM if locating is unfinished.
Locating: 100% |oooooooooooooooooooooooooooooooooooooo| Time: 00:00:02
Notice: Complete
/Datacenters/dc/vm/Discovered virtual machine/ans-db01
powerstate: poweredOff
name: ans-db01
hostname: --------
instanceid: 50133769-b602-b6e4-7307-23a574b85699
ipaddress: ---.---.---.---
template: true
/Datacenters/dc/vm/Discovered virtual machine/ans-db02
powerstate: poweredOff
name: ans-db02
hostname: --------
instanceid: 5013b6bf-be08-abd4-a742-361d94701471
ipaddress: ---.---.---.---
template: false
/Datacenters/dc/vm/Discovered virtual machine/ans-nginx01
powerstate: poweredOff
name: ans-nginx01
hostname: --------
instanceid: 5013c3dc-201e-ccd5-91e6-1b5b8c607876
ipaddress: ---.---.---.---
template: false
/Datacenters/dc/vm/Discovered virtual machine/ans-nginx02
powerstate: poweredOff
name: ans-nginx02
hostname: --------
instanceid: 5013ca38-52b6-f05b-6947-bc9cf01bd724
ipaddress: ---.---.---.---
template: false
/Datacenters/dc/vm/Discovered virtual machine/livekde1
powerstate: poweredOff
name: livekde1
hostname: --------
instanceid: 5013c70b-adca-041d-a3f1-0d08426272f5
ipaddress: ---.---.---.---
template: true
/Datacenters/dc/vm/new-vm
powerstate: poweredOff
name: new-vm
hostname: --------
instanceid: 50132383-d1fa-861a-f10b-dfe7c4fe6446
ipaddress: ---.---.---.---
template: false
/Datacenters/dc/vm/new-vm1
powerstate: poweredOff
name: new-vm1
hostname: --------
instanceid: 50130102-e8e5-a5f3-97b8-222e70c1cb77
ipaddress: ---.---.---.---
template: false
[root@localhost ~]# puppet node_vmware create --vmname=nginx01 --template="/Datacenters/dc/vm/Discovered virtual machine/ans-nginx01"
Notice: Connecting ...
Notice: Connected to 192.168.0.108 as root (API version 4.1)
Notice: Locating VM at /Datacenters/dc/vm/Discovered virtual machine/ans-nginx01 (Started at 10:53:43 AM)
Notice: Control will be returned to you in 10 minutes at 11:03 AM if locating (1/2) is unfinished.
Locating (1/2): 100% |oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo| Time: 00:00:00
Notice: Starting the clone process (Started at 10:53:44 AM)
Notice: Control will be returned to you in 10 minutes at 11:03 AM if starting (2/2) is unfinished.
Starting (2/2): 100% |oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo| Time: 00:00:15
---
status: success
id: "50130ea9-1e47-5400-4ac7-caf710938bc0"
name: nginx01
uuid: "42132b86-428f-3d2c-1b5e-e4c54453a73a"
instance_uuid: "50130ea9-1e47-5400-4ac7-caf710938bc0"
hostname:
operatingsystem:
ipaddress:
power_state: poweredOff
connection_state: connected
hypervisor: "192.168.0.106"
tools_state: toolsNotRunning
tools_version: guestToolsUnmanaged
is_a_template: false
memory_mb: 256
cpus: 1
mo_ref: vm-380
mac_addresses:
"Network adapter 1": "00:50:56:93:52:9e"
path: "/Datacenters/dc/vm/Discovered virtual machine"
[root@localhost ~]# puppet node_vmware create --vmname=nginx02 --template="/Datacenters/dc/vm/Discovered virtual machine/ans-nginx02"
Notice: Connecting ...
Notice: Connected to 192.168.0.108 as root (API version 4.1)
Notice: Locating VM at /Datacenters/dc/vm/Discovered virtual machine/ans-nginx02 (Started at 10:54:17 AM)
Notice: Control will be returned to you in 10 minutes at 11:04 AM if locating (1/2) is unfinished.
Locating (1/2): 100% |oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo| Time: 00:00:01
Notice: Starting the clone process (Started at 10:54:18 AM)
Notice: Control will be returned to you in 10 minutes at 11:04 AM if starting (2/2) is unfinished.
Starting (2/2): 100% |oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo| Time: 00:00:16
---
status: success
id: "50131351-2526-1bb7-6d61-74066091b654"
name: nginx02
uuid: "4213152c-4ce0-0bdb-539b-8902e31b9286"
instance_uuid: "50131351-2526-1bb7-6d61-74066091b654"
hostname:
operatingsystem:
ipaddress:
power_state: poweredOff
connection_state: connected
hypervisor: "192.168.0.106"
tools_state: toolsNotRunning
tools_version: guestToolsUnmanaged
is_a_template: false
memory_mb: 256
cpus: 1
mo_ref: vm-381
mac_addresses:
"Network adapter 1": "00:50:56:93:ad:8e"
path: "/Datacenters/dc/vm/Discovered virtual machine"
:default:
:vsphere_server: 192.168.0.108
:vsphere_username: root
:vsphere_password: vmware
:vsphere_expected_pubkey_hash: 24f87c40cea28c2620dc372d914a3bb5ad06fddb9f131909c1441061566a79a1
[root@localhost ~]#
[root@localhost ~]# puppet node_vmware list
Notice: Connecting ...
Notice: Connected to 192.168.0.108 as root (API version 4.1)
Notice: Finding all Virtual Machines ... (Started at 10:40:20 AM)
Notice: Control will be returned to you in 10 minutes at 10:50 AM if locating is unfinished.
Locating: 100% |oooooooooooooooooooooooooooooooooooooo| Time: 00:00:02
Notice: Complete
/Datacenters/dc/vm/Discovered virtual machine/ans-db01
powerstate: poweredOff
name: ans-db01
hostname: --------
instanceid: 50133769-b602-b6e4-7307-23a574b85699
ipaddress: ---.---.---.---
template: true
/Datacenters/dc/vm/Discovered virtual machine/ans-db02
powerstate: poweredOff
name: ans-db02
hostname: --------
instanceid: 5013b6bf-be08-abd4-a742-361d94701471
ipaddress: ---.---.---.---
template: false
/Datacenters/dc/vm/Discovered virtual machine/ans-nginx01
powerstate: poweredOff
name: ans-nginx01
hostname: --------
instanceid: 5013c3dc-201e-ccd5-91e6-1b5b8c607876
ipaddress: ---.---.---.---
template: false
/Datacenters/dc/vm/Discovered virtual machine/ans-nginx02
powerstate: poweredOff
name: ans-nginx02
hostname: --------
instanceid: 5013ca38-52b6-f05b-6947-bc9cf01bd724
ipaddress: ---.---.---.---
template: false
/Datacenters/dc/vm/Discovered virtual machine/livekde1
powerstate: poweredOff
name: livekde1
hostname: --------
instanceid: 5013c70b-adca-041d-a3f1-0d08426272f5
ipaddress: ---.---.---.---
template: true
/Datacenters/dc/vm/new-vm
powerstate: poweredOff
name: new-vm
hostname: --------
instanceid: 50132383-d1fa-861a-f10b-dfe7c4fe6446
ipaddress: ---.---.---.---
template: false
/Datacenters/dc/vm/new-vm1
powerstate: poweredOff
name: new-vm1
hostname: --------
instanceid: 50130102-e8e5-a5f3-97b8-222e70c1cb77
ipaddress: ---.---.---.---
template: false
[root@localhost ~]# puppet node_vmware create --vmname=nginx01 --template="/Datacenters/dc/vm/Discovered virtual machine/ans-nginx01"
Notice: Connecting ...
Notice: Connected to 192.168.0.108 as root (API version 4.1)
Notice: Locating VM at /Datacenters/dc/vm/Discovered virtual machine/ans-nginx01 (Started at 10:53:43 AM)
Notice: Control will be returned to you in 10 minutes at 11:03 AM if locating (1/2) is unfinished.
Locating (1/2): 100% |oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo| Time: 00:00:00
Notice: Starting the clone process (Started at 10:53:44 AM)
Notice: Control will be returned to you in 10 minutes at 11:03 AM if starting (2/2) is unfinished.
Starting (2/2): 100% |oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo| Time: 00:00:15
---
status: success
id: "50130ea9-1e47-5400-4ac7-caf710938bc0"
name: nginx01
uuid: "42132b86-428f-3d2c-1b5e-e4c54453a73a"
instance_uuid: "50130ea9-1e47-5400-4ac7-caf710938bc0"
hostname:
operatingsystem:
ipaddress:
power_state: poweredOff
connection_state: connected
hypervisor: "192.168.0.106"
tools_state: toolsNotRunning
tools_version: guestToolsUnmanaged
is_a_template: false
memory_mb: 256
cpus: 1
mo_ref: vm-380
mac_addresses:
"Network adapter 1": "00:50:56:93:52:9e"
path: "/Datacenters/dc/vm/Discovered virtual machine"
[root@localhost ~]# puppet node_vmware create --vmname=nginx02 --template="/Datacenters/dc/vm/Discovered virtual machine/ans-nginx02"
Notice: Connecting ...
Notice: Connected to 192.168.0.108 as root (API version 4.1)
Notice: Locating VM at /Datacenters/dc/vm/Discovered virtual machine/ans-nginx02 (Started at 10:54:17 AM)
Notice: Control will be returned to you in 10 minutes at 11:04 AM if locating (1/2) is unfinished.
Locating (1/2): 100% |oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo| Time: 00:00:01
Notice: Starting the clone process (Started at 10:54:18 AM)
Notice: Control will be returned to you in 10 minutes at 11:04 AM if starting (2/2) is unfinished.
Starting (2/2): 100% |oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo| Time: 00:00:16
---
status: success
id: "50131351-2526-1bb7-6d61-74066091b654"
name: nginx02
uuid: "4213152c-4ce0-0bdb-539b-8902e31b9286"
instance_uuid: "50131351-2526-1bb7-6d61-74066091b654"
hostname:
operatingsystem:
ipaddress:
power_state: poweredOff
connection_state: connected
hypervisor: "192.168.0.106"
tools_state: toolsNotRunning
tools_version: guestToolsUnmanaged
is_a_template: false
memory_mb: 256
cpus: 1
mo_ref: vm-381
mac_addresses:
"Network adapter 1": "00:50:56:93:ad:8e"
path: "/Datacenters/dc/vm/Discovered virtual machine"
Comments
Post a Comment