{"action":"reopened","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/35754","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/35754/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/35754/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/35754/events","html_url":"https://github.com/saltstack/salt/issues/35754","id":173099280,"number":35754,"title":"salt-cloud with pillar","user":{"login":"SolarisYan","id":8148762,"avatar_url":"https://avatars.githubusercontent.com/u/8148762?v=3","gravatar_id":"","url":"https://api.github.com/users/SolarisYan","html_url":"https://github.com/SolarisYan","followers_url":"https://api.github.com/users/SolarisYan/followers","following_url":"https://api.github.com/users/SolarisYan/following{/other_user}","gists_url":"https://api.github.com/users/SolarisYan/gists{/gist_id}","starred_url":"https://api.github.com/users/SolarisYan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SolarisYan/subscriptions","organizations_url":"https://api.github.com/users/SolarisYan/orgs","repos_url":"https://api.github.com/users/SolarisYan/repos","events_url":"https://api.github.com/users/SolarisYan/events{/privacy}","received_events_url":"https://api.github.com/users/SolarisYan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Info%20Needed","name":"Info Needed","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/37","html_url":"https://github.com/saltstack/salt/milestones/Blocked","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/37/labels","id":343741,"number":37,"title":"Blocked","description":"Issues which are blocked in some way, whether they need further discussion, clarification, justification, or are blocked for some other reason.","creator":{"login":"basepi","id":702318,"avatar_url":"https://avatars.githubusercontent.com/u/702318?v=3","gravatar_id":"","url":"https://api.github.com/users/basepi","html_url":"https://github.com/basepi","followers_url":"https://api.github.com/users/basepi/followers","following_url":"https://api.github.com/users/basepi/following{/other_user}","gists_url":"https://api.github.com/users/basepi/gists{/gist_id}","starred_url":"https://api.github.com/users/basepi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basepi/subscriptions","organizations_url":"https://api.github.com/users/basepi/orgs","repos_url":"https://api.github.com/users/basepi/repos","events_url":"https://api.github.com/users/basepi/events{/privacy}","received_events_url":"https://api.github.com/users/basepi/received_events","type":"User","site_admin":false},"open_issues":547,"closed_issues":999,"state":"open","created_at":"2013-05-28T22:24:12Z","updated_at":"2016-08-30T07:22:57Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-08-25T02:14:55Z","updated_at":"2016-08-30T07:22:57Z","closed_at":null,"body":"hello there,i see that \r\nIt is possible to configure cloud providers using pillars. This is only used when inside the cloud module.\r\nat [https://docs.saltstack.com/en/latest/topics/cloud/config.html#pillar-configuration](url)\r\nand i have a pillar file like this:\r\n\r\n```\r\ncloud:\r\n  providers:\r\n    vcenter1:\r\n      driver: vmware\r\n      user: 'root'\r\n      password: 'xxx'\r\n      url: 'xxx'\r\n```\r\n\r\n```\r\nsalt-run pillar.show_top\r\ncloud:\r\n    ----------\r\n    providers:\r\n        - vcenter1\r\n```\r\n\r\nbut when i run:  \r\n\r\n```\r\nsalt-cloud -f test_vcenter_connection vcenter1\r\nError: There was an error running the function: No cloud providers matched 'vcenter1'. Available selections: vcenter\r\n```\r\nthe vcenter providers   is  config in the /etc/salt/cloud.providers.d/vmware.conf\r\n\r\n```\r\n    vcenter:\r\n      driver: vmware\r\n      user: 'root'\r\n      password: 'xxx'\r\n      url: 'xxx'\r\n```\r\n\r\nAnd the conf is sure ok.\r\n\r\n```\r\nsalt-cloud -f test_vcenter_connection vcenter\r\n\r\nvcenter:\r\n    ----------\r\n    vmware:\r\n        connection successful\r\n```\r\n\r\nhow to use pillar replace the conf file?\r\n\r\nsalt-cloud --versions-report\r\n\r\n```\r\nSalt Version:\r\n            Salt: 2016.3.2\r\n \r\nDependency Versions:\r\n Apache Libcloud: 0.20.1\r\n            cffi: Not Installed\r\n        cherrypy: 3.2.2\r\n        dateutil: 2.5.3\r\n           gitdb: Not Installed\r\n       gitpython: Not Installed\r\n           ioflo: Not Installed\r\n          Jinja2: 2.7.2\r\n         libgit2: Not Installed\r\n         libnacl: Not Installed\r\n        M2Crypto: Not Installed\r\n            Mako: Not Installed\r\n    msgpack-pure: Not Installed\r\n  msgpack-python: 0.4.7\r\n    mysql-python: 1.2.3\r\n       pycparser: Not Installed\r\n        pycrypto: 2.6.1\r\n          pygit2: Not Installed\r\n          Python: 2.7.5 (default, Nov 20 2015, 02:00:19)\r\n    python-gnupg: Not Installed\r\n          PyYAML: 3.11\r\n           PyZMQ: 14.7.0\r\n            RAET: Not Installed\r\n           smmap: Not Installed\r\n         timelib: Not Installed\r\n         Tornado: 4.2.1\r\n             ZMQ: 4.0.5\r\n \r\nSystem Versions:\r\n            dist: centos 7.2.1511 Core\r\n         machine: x86_64\r\n         release: 3.10.0-327.22.2.el7.x86_64\r\n          system: Linux\r\n         version: CentOS Linux 7.2.1511 Core\r\n```"}}
{"actor":{"display_login":"SolarisYan"}}