saltstack / salt

Software to automate the management and configuration of any infrastructure or application at scale. Install Salt from the Salt package repositories here:
https://docs.saltproject.io/salt/install-guide/en/latest/
Apache License 2.0
14.17k stars 5.48k forks source link

cant get master options into cloud provider vm #55943

Open alan-cugler opened 4 years ago

alan-cugler commented 4 years ago

Description of Issue

I am spinning up a vm on digitalocean. The vm is to have a minion and master process running on it upon completed provisioning. The minion options populate but not the master.

I am using Orchestration with a salt.runner for the cloud.profile module.

Setup

master_spinup: salt.runner:

The orchestration state runs perfectly, I ssh into the vm and the minions config file (/etc/salt/minion) contains the changes, but the masters configuration file (/etc/salt/master) is still the default configuration file. Both processes are running successfully as well.

I have also attempted setting the master option in the orchestration file on - kwarg: as well. this resulted the same.

Versions Report

root@CPC:/etc/salt/master.d# salt --versions-report
Salt Version:
           Salt: 2019.2.3

Dependency Versions:
           cffi: Not Installed
       cherrypy: Not Installed
       dateutil: 2.6.1
      docker-py: Not Installed
          gitdb: 2.0.3
      gitpython: 2.1.8
          ioflo: Not Installed
         Jinja2: 2.10
        libgit2: Not Installed
        libnacl: Not Installed
       M2Crypto: 0.27.0
           Mako: 1.0.7
   msgpack-pure: Not Installed
 msgpack-python: 0.5.6
   mysql-python: Not Installed
      pycparser: Not Installed
       pycrypto: 2.6.1
   pycryptodome: Not Installed
         pygit2: Not Installed
         Python: 2.7.17 (default, Nov  7 2019, 10:07:09)
   python-gnupg: 0.4.1
         PyYAML: 3.12
          PyZMQ: 16.0.2
           RAET: Not Installed
          smmap: 2.0.3
        timelib: Not Installed
        Tornado: 4.5.3
            ZMQ: 4.2.5

System Versions:
           dist: Ubuntu 18.04 bionic
         locale: UTF-8
        machine: x86_64
        release: 5.0.0-37-generic
         system: Linux
        version: Ubuntu 18.04 bionic
xeacott commented 4 years ago

Thanks for the report. There might be some other options to get the master config file to pass along, or maybe it's being lost in translation and only the minion file makes it over. Have you tried not sending the minion config file and only sending the master config file to see if shows up modified?

I think that's what is happening here, unless I'm ready it totally wrong.

alan-cugler commented 4 years ago

I have tried removing the minion configs and just passing through -opts the master config options. That didnt give any different results for the master.

xeacott commented 4 years ago

Gotcha, I'll see if anyone on @saltstack/team-core has some suggestions as I'm not super familiar with this area of salt...