What exactly can Salt-Syndic do?

754 views
Skip to first unread message

Jacob Albretsen

unread,
Feb 1, 2013, 2:55:48 PM2/1/13
to salt users list
Environment: CentOS 6 and Salt 0.11.1 from EPEL.

I'm attempting to set up syndic to run on our servers. Right now I have:

master -> bunches-of-minion-in-all-environments

I want to limit what boxes go through our firewall (VPN) to another offsite
environment so I can have:

masterofmasters -> some-local-minions

AND

masterofmasters -> syndic-elsewhere -> minions-elsewhere

I had to remove the key file from the minion-elsewhere and approve it on the
syndic server. I can now on masterofmasters do a test.ping to the minion-
elsewhere and get True. However on the minion-elsewhere, if I do a "salt-call
state.highstate test=True", I get

[INFO ] Loaded configuration file: /etc/salt/minion
[INFO ] Executing command 'ps -efH' in directory '/root'
[INFO ] Loading fresh modules for state activity
[INFO ] Fetching file 'salt://top.sls'
local:
----------
State: - no
Name: states
Function: None
Result: False
Comment: No Top file or external nodes data matches found
Changes:

Do I need something else? Is the pass-through for syndic only one way?

Thanks,

- Jake

David Boucha

unread,
Feb 1, 2013, 6:44:10 PM2/1/13
to salt users list
Yeah, it's one way.

The syndic is a lightweight pass through. It's not much more than a regular minion.



--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.





--
Dave Boucha  |  Sr. Engineer


5272 South College Drive, Suite 301 | Murray, UT 84123

office 801-305-3563
da...@saltstack.com | www.saltstack.com

Jon Yoder

unread,
Feb 1, 2013, 6:55:57 PM2/1/13
to salt-...@googlegroups.com
Pardon the newbie question here, but I can't find the answer anywhere else.

I've installed Salt on a couple of Linux Mint machines using the PPA and
I can't use the pkg and apt modules. I don't see apt listed when I run a
salt --doc on the master. What am I doing wrong here?

--Jon

David Boucha

unread,
Feb 1, 2013, 6:57:32 PM2/1/13
to salt users list
You'll want to use the pkg module. The pkg module uses apt or yum or whatever to provide a unified interface.




--Jon

--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.


Jon Yoder

unread,
Feb 1, 2013, 7:34:04 PM2/1/13
to salt-...@googlegroups.com
On 02/01/2013 06:57 PM, David Boucha wrote:
> You'll want to use the pkg module. The pkg module uses apt or yum or
> whatever to provide a unified interface.
Having seen that the pkg module was a virtual one, I've looked for that,
too. There is a pkg_resource, but not one that is just pkg. Suggestions?

--Jon

Joseph Hall

unread,
Feb 1, 2013, 7:38:50 PM2/1/13
to salt-...@googlegroups.com
I wonder if your using Mint is causing the pkg virtual package not to be loaded.

You haven't explicitly said, so I have to ask: are you able to use any
pkg functions?

Also, would you please post anything from grains.items that starts
with "lsb" or "os"?
> --
> You received this message because you are subscribed to the Google Groups
> "Salt-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to salt-users+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
"In order to create, you have to have the willingness, the desire to
be challenged, to be learning." -- Ferran Adria (speaking at Harvard,
2011)

Jon Yoder

unread,
Feb 1, 2013, 8:19:01 PM2/1/13
to salt-...@googlegroups.com
On 02/01/2013 07:38 PM, Joseph Hall wrote:
> I wonder if your using Mint is causing the pkg virtual package not to be loaded.
>
> You haven't explicitly said, so I have to ask: are you able to use any
> pkg functions?
I don't think so. I've tried calling pkg.list_upgrades and
pkg.refresh_db() and in both cases I get a "pkg.____ is not available"
error back from the minion.

> Also, would you please post anything from grains.items that starts
> with "lsb" or "os"?
lsb_codename: maya
lsb_description: Linux Mint 13 Maya
lsb_id: LinuxMint
lsb_release: 13
os: Mint
os_family: Mint
oscodename: maya
osfullname: LinuxMint
osrelease: 13


Having looked a little more closely at grains.items now, is the fact
that os_family is not Debian the culprit here?

--Jon

Joseph Hall

unread,
Feb 1, 2013, 8:24:54 PM2/1/13
to salt-...@googlegroups.com
> Having looked a little more closely at grains.items now, is the fact that
> os_family is not Debian the culprit here?

Looks like it. If you want to submit an issue on GitHub, we can get
that patched up.

Jon Yoder

unread,
Feb 1, 2013, 8:28:39 PM2/1/13
to salt-...@googlegroups.com
On 02/01/2013 08:24 PM, Joseph Hall wrote:
>> Having looked a little more closely at grains.items now, is the fact that
>> os_family is not Debian the culprit here?
>
> Looks like it. If you want to submit an issue on GitHub, we can get
> that patched up.
>
Will do. Thanks!

--Jon

Ben Hosmer

unread,
Feb 2, 2013, 10:30:56 AM2/2/13
to salt-...@googlegroups.com
Jon, 

Can you try out the latest push to develop? I think this might solve your Mint issues.


--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.





--
Ben Hosmer

Brevard Tech - Brevard County Florida's Tech User Group
Reply all
Reply to author
Forward
0 new messages