Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jseguillon/3e88a58e54646e5590680bbca39b0b01 to your computer and use it in GitHub Desktop.
Save jseguillon/3e88a58e54646e5590680bbca39b0b01 to your computer and use it in GitHub Desktop.
PS C:\temp\2> New-Winspray-Cluster .\test.yml -Force
# Winspray - check env
Vagrant 2.2.6
Client: Docker Engine - Community
Version: 19.03.8
API version: 1.40
Go version: go1.12.17
Git commit: afacb8b
Built: Wed Mar 11 01:23:10 2020
OS/Arch: windows/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 19.03.8
API version: 1.40 (minimum version 1.12)
Go version: go1.12.17
Git commit: afacb8b
Built: Wed Mar 11 01:29:16 2020
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.2.13
GitCommit: 7ad184331fa3e55e52b890ea95e65ba581ae3429
runc:
Version: 1.0.0-rc10
GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd
docker-init:
Version: 0.18.0
GitCommit: fec3683
## Winspray - check ok
# Winspray - create kubespray inventory and vagant config
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost
does not match 'all'
PLAY [localhost] ***************************************************************************************
Friday 19 June 2020 11:00:37 +0000 (0:00:00.113) 0:00:00.113 ***********
TASK [Gathering Facts] *********************************************************************************
ok: [localhost]
Friday 19 June 2020 11:00:38 +0000 (0:00:00.960) 0:00:01.074 ***********
TASK [get mount point] *********************************************************************************
changed: [localhost -> localhost]
Friday 19 June 2020 11:00:38 +0000 (0:00:00.334) 0:00:01.408 ***********
TASK [show mount point files] **************************************************************************
ok: [localhost] => {
"msg": {
"changed": true,
"cmd": "ls -al /opt/winspray/",
"delta": "0:00:00.016033",
"end": "2020-06-19 11:00:38.859804",
"failed": false,
"rc": 0,
"start": "2020-06-19 11:00:38.843771",
"stderr": "",
"stderr_lines": [],
"stdout": "total 4\ndrwxrwxrwx 1 root root 4096 Jun 19 11:00 .\ndrwxr-xr-x 1 root root 4096 Jun 19 11:00 ..\ndrwxrwxrwx 1 root root 0 Jun 19 10:21 .vagrant\n-rwxr-xr-x 1 root root 1765 Jun 19 10:21 Vagrantfile\ndrwxrwxrwx 1 root root 4096 Jun 15 20:17 kubespray_cache\n-rwxr-xr-x 1 root root 313 Jun 14 14:55 minimal.yml\ndrwxrwxrwx 1 root root 4096 Jun 15 20:03 old-06-15-2020-22-03\ndrwxrwxrwx 1 root root 4096 Jun 19 10:20 old-06-19-2020-12-20\ndrwxrwxrwx 1 root root 4096 Jun 19 10:47 old-06-19-2020-12-47\n-rwxr-xr-x 1 root root 313 Jun 14 14:55 test.yml",
"stdout_lines": [
"total 4",
"drwxrwxrwx 1 root root 4096 Jun 19 11:00 .",
"drwxr-xr-x 1 root root 4096 Jun 19 11:00 ..",
"drwxrwxrwx 1 root root 0 Jun 19 10:21 .vagrant",
"-rwxr-xr-x 1 root root 1765 Jun 19 10:21 Vagrantfile",
"drwxrwxrwx 1 root root 4096 Jun 15 20:17 kubespray_cache",
"-rwxr-xr-x 1 root root 313 Jun 14 14:55 minimal.yml",
"drwxrwxrwx 1 root root 4096 Jun 15 20:03 old-06-15-2020-22-03",
"drwxrwxrwx 1 root root 4096 Jun 19 10:20 old-06-19-2020-12-20",
"drwxrwxrwx 1 root root 4096 Jun 19 10:47 old-06-19-2020-12-47",
"-rwxr-xr-x 1 root root 313 Jun 14 14:55 test.yml"
]
}
}
Friday 19 June 2020 11:00:39 +0000 (0:00:00.551) 0:00:01.959 ***********
TASK [create current directory] ************************************************************************
changed: [localhost]
Friday 19 June 2020 11:00:39 +0000 (0:00:00.496) 0:00:02.456 ***********
TASK [render given infra] ******************************************************************************
fatal: [localhost -> localhost]: FAILED! => {"changed": false, "msg": "Could not find or access '/opt/winspray/.\test.yml' on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"}
PLAY RECAP *********************************************************************************************
localhost : ok=4 changed=2 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
Friday 19 June 2020 11:00:40 +0000 (0:00:00.569) 0:00:03.026 ***********
===============================================================================
Gathering Facts --------------------------------------------------------------------------------- 0.96s
render given infra ------------------------------------------------------------------------------ 0.57s
show mount point files -------------------------------------------------------------------------- 0.55s
create current directory ------------------------------------------------------------------------ 0.50s
get mount point --------------------------------------------------------------------------------- 0.33s
** ERROR *** Found error while creating inventory
Au caractère C:\temp\winspray\module\winspray\winspray.psm1:142 : 17
+ ... if (!$?) { throw ( "** ERROR *** Found error while creating inventor ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (** ERROR *** Fo...ating inventory:String) [], Runtime
Exception
+ FullyQualifiedErrorId : ** ERROR *** Found error while creating inventory
PS C:\temp\2> rm -Recurse -Force .\current
PS C:\temp\2> New-Winspray-Cluster .\minimal.yml -Force
# Winspray - check env
Vagrant 2.2.6
Client: Docker Engine - Community
Version: 19.03.8
API version: 1.40
Go version: go1.12.17
Git commit: afacb8b
Built: Wed Mar 11 01:23:10 2020
OS/Arch: windows/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 19.03.8
API version: 1.40 (minimum version 1.12)
Go version: go1.12.17
Git commit: afacb8b
Built: Wed Mar 11 01:29:16 2020
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.2.13
GitCommit: 7ad184331fa3e55e52b890ea95e65ba581ae3429
runc:
Version: 1.0.0-rc10
GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd
docker-init:
Version: 0.18.0
GitCommit: fec3683
## Winspray - check ok
# Winspray - create kubespray inventory and vagant config
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost
does not match 'all'
PLAY [localhost] ***************************************************************************************
Friday 19 June 2020 11:01:21 +0000 (0:00:00.113) 0:00:00.113 ***********
TASK [Gathering Facts] *********************************************************************************
ok: [localhost]
Friday 19 June 2020 11:01:21 +0000 (0:00:00.938) 0:00:01.051 ***********
TASK [get mount point] *********************************************************************************
changed: [localhost -> localhost]
Friday 19 June 2020 11:01:22 +0000 (0:00:00.347) 0:00:01.399 ***********
TASK [show mount point files] **************************************************************************
ok: [localhost] => {
"msg": {
"changed": true,
"cmd": "ls -al /opt/winspray/",
"delta": "0:00:00.015430",
"end": "2020-06-19 11:01:22.260353",
"failed": false,
"rc": 0,
"start": "2020-06-19 11:01:22.244923",
"stderr": "",
"stderr_lines": [],
"stdout": "total 4\ndrwxrwxrwx 1 root root 4096 Jun 19 11:00 .\ndrwxr-xr-x 1 root root 4096 Jun 19 11:01 ..\ndrwxrwxrwx 1 root root 0 Jun 19 10:21 .vagrant\n-rwxr-xr-x 1 root root 1765 Jun 19 10:21 Vagrantfile\ndrwxrwxrwx 1 root root 4096 Jun 15 20:17 kubespray_cache\n-rwxr-xr-x 1 root root 313 Jun 14 14:55 minimal.yml\ndrwxrwxrwx 1 root root 4096 Jun 15 20:03 old-06-15-2020-22-03\ndrwxrwxrwx 1 root root 4096 Jun 19 10:20 old-06-19-2020-12-20\ndrwxrwxrwx 1 root root 4096 Jun 19 10:47 old-06-19-2020-12-47\n-rwxr-xr-x 1 root root 313 Jun 14 14:55 test.yml",
"stdout_lines": [
"total 4",
"drwxrwxrwx 1 root root 4096 Jun 19 11:00 .",
"drwxr-xr-x 1 root root 4096 Jun 19 11:01 ..",
"drwxrwxrwx 1 root root 0 Jun 19 10:21 .vagrant",
"-rwxr-xr-x 1 root root 1765 Jun 19 10:21 Vagrantfile",
"drwxrwxrwx 1 root root 4096 Jun 15 20:17 kubespray_cache",
"-rwxr-xr-x 1 root root 313 Jun 14 14:55 minimal.yml",
"drwxrwxrwx 1 root root 4096 Jun 15 20:03 old-06-15-2020-22-03",
"drwxrwxrwx 1 root root 4096 Jun 19 10:20 old-06-19-2020-12-20",
"drwxrwxrwx 1 root root 4096 Jun 19 10:47 old-06-19-2020-12-47",
"-rwxr-xr-x 1 root root 313 Jun 14 14:55 test.yml"
]
}
}
Friday 19 June 2020 11:01:22 +0000 (0:00:00.508) 0:00:01.907 ***********
TASK [create current directory] ************************************************************************
changed: [localhost]
Friday 19 June 2020 11:01:23 +0000 (0:00:00.381) 0:00:02.289 ***********
TASK [render given infra] ******************************************************************************
changed: [localhost -> localhost]
Friday 19 June 2020 11:01:24 +0000 (0:00:01.107) 0:00:03.396 ***********
TASK [include now rendered infra] **********************************************************************
ok: [localhost]
Friday 19 June 2020 11:01:24 +0000 (0:00:00.092) 0:00:03.488 ***********
TASK [create vagrant env] ******************************************************************************
changed: [localhost -> localhost]
Friday 19 June 2020 11:01:25 +0000 (0:00:00.931) 0:00:04.420 ***********
TASK [create hosts inventory] **************************************************************************
changed: [localhost -> localhost]
Friday 19 June 2020 11:01:26 +0000 (0:00:00.858) 0:00:05.278 ***********
TASK [copy vagrant file] *******************************************************************************
ok: [localhost]
Friday 19 June 2020 11:01:26 +0000 (0:00:00.364) 0:00:05.643 ***********
TASK [copy default group_vars] *************************************************************************
changed: [localhost]
Friday 19 June 2020 11:01:33 +0000 (0:00:07.070) 0:00:12.713 ***********
TASK [copy default config] *****************************************************************************
changed: [localhost]
PLAY RECAP *********************************************************************************************
localhost : ok=11 changed=7 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
Friday 19 June 2020 11:01:34 +0000 (0:00:01.019) 0:00:13.733 ***********
===============================================================================
copy default group_vars ------------------------------------------------------------------------- 7.07s
render given infra ------------------------------------------------------------------------------ 1.11s
copy default config ----------------------------------------------------------------------------- 1.02s
Gathering Facts --------------------------------------------------------------------------------- 0.94s
create vagrant env ------------------------------------------------------------------------------ 0.93s
create hosts inventory -------------------------------------------------------------------------- 0.86s
show mount point files -------------------------------------------------------------------------- 0.51s
create current directory ------------------------------------------------------------------------ 0.38s
copy vagrant file ------------------------------------------------------------------------------- 0.36s
get mount point --------------------------------------------------------------------------------- 0.35s
include now rendered infra ---------------------------------------------------------------------- 0.09s
## Winspray - inventory and vagrant config created
# Winspray - create new VMs
PS C:\temp\2> ls
Répertoire : C:\temp\2
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 19/06/2020 12:21 .vagrant
d----- 19/06/2020 13:01 current
d----- 15/06/2020 22:17 kubespray_cache
d----- 15/06/2020 22:03 old-06-15-2020-22-03
d----- 19/06/2020 12:20 old-06-19-2020-12-20
d----- 19/06/2020 12:47 old-06-19-2020-12-47
-a---- 14/06/2020 16:55 313 minimal.yml
-a---- 14/06/2020 16:55 313 test.yml
-a---- 19/06/2020 12:21 1765 Vagrantfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment