ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Solved Share files to Salt Windows Minions

    IT Discussion
    2
    2
    774
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Emad RE
      Emad R
      last edited by

      Hello,

      Can i get support, I am trying something like this:

      salt '' cp.get_file test123.txt
      salt '
      ' cp.get_file test123.txt /c/
      salt '*' cp.get_file test123.txt \c\

      And the results are:

      I.T_PC:
      ----------

      I want to send file to my Windows Minion

      Thanks.

      File Is hosted in /srv/salt/

      1 Reply Last reply Reply Quote 0
      • dafyreD
        dafyre
        last edited by

        I believe that your cp.get file should be something like:

        salt * cp.get_file salt://test123.txt C:\

        You can also do this with the file.managed in a state file.

        C:\zabbix_agent\zabbix_agentd.conf:
          file.managed:
            - source:
              - salt://zabbix/zabbix_agentd.conf
            - user: root
            - group: root
            - mode: 644
        
        1 Reply Last reply Reply Quote 3
        • 1 / 1
        • First post
          Last post