Salt on OpenEmbedded/Yocto

387 views
Skip to first unread message

Alejandro del Castillo

unread,
Apr 3, 2015, 11:58:44 AM4/3/15
to salt-...@googlegroups.com
Hi,

I am working integrating System's Management via Salt in Embedded devices.
We are building our embedded image via OpenEmbedded/Yocto, which uses
recipes to build/package the different component that will be integrated
into the image (and the feeds). I search around, and couldn't found an
existing recipe for Salt, so I have been working putting one together. I
based it on the current ubuntu-trusty packages, with modifications to make
it more embedded-friendly (move some RECOMMENDS to SUGGESTS, modified
init.d scripts, etc).

I am planning to submit the recipe to the openembedded-devel mailing list,
as part of the meta-openembedded recipe next week. However, I think the
recipe (dependencies, file breakout, etc) requires review from someone
from the Salt community. What would be the best way to review the work?
Should I submit to openembedded-devel then CC this list or someone in
particular?

cheers,

-Alejandro

Joseph Hall

unread,
Apr 3, 2015, 12:18:40 PM4/3/15
to salt-...@googlegroups.com
Hi Alejandro,

I'm really excited about this! If you would be willing, the best place to store this is probably in the saltstack-formulas org on GitHub:


We can either create a new repo for you there, or if you already have one running, one of the devs can add it for you. Discussion and review of your states can then take place either in the issue tracker for that repo, or here on the mailing list.


--
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/d/optout.



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

Alejandro del Castillo

unread,
Apr 6, 2015, 12:12:12 PM4/6/15
to salt-...@googlegroups.com
Hi Joseph,

The thing is that the Salt recipe for OpenEmbedded is not a Salt state (my
understanding is that Formulas are states). It is a file that defines the
way to create ipk,deb and rpm's out of Salt source. Specifically, I wanted
to submit my Salt recipe (salt_2014.7.1.bb) on the meta-openembedded
layer, which has it's upstream at
http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-devtools
.

If it's ok for me to submit salt_2014.7.1.bb on
https://github.com/saltstack-formulas to review the bb file, I can do that
too.

cheers,

-Alejandro

Alejandro del Castillo

unread,
Apr 6, 2015, 12:12:13 PM4/6/15
to salt-...@googlegroups.com
The thing is that the Salt recipe for OpenEmbedded is not a Salt state (my
understanding is that Formulas are states). It is a file that defines the
way to create ipk,deb and rpm's out of Salt source. Specifically, I wanted
to submit my Salt recipe (salt_2014.7.1.bb) on the meta-openembedded
layer, which has it's upstream at
http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-devtools
.

If it's ok for me to submit salt_2014.7.1.bb on
https://github.com/saltstack-formulas to review the bb file, I can do that
too.

cheers,

-Alejandro




From: Joseph Hall <perl...@gmail.com>
To: salt-...@googlegroups.com,
Date: 04/03/2015 11:18 AM
Subject: Re: [salt-users] Salt on OpenEmbedded/Yocto
Sent by: salt-...@googlegroups.com



Joseph Hall

unread,
Apr 6, 2015, 2:19:35 PM4/6/15
to salt-...@googlegroups.com
Alejandro,

I don't have an answer on that, but I will say that there are a couple of repos in that org that are reactors, not states. So maybe a salt-openembedded repo?

Community: any thoughts?

Joel Whitehouse

unread,
Apr 6, 2015, 4:43:52 PM4/6/15
to salt-...@googlegroups.com
An OpenEmbedded recipe for salt is much more like salt-bootstrap than a
salt-formula in that it is a way to get salt installed on your system.
In the case of OpenEmbedded, it's actually baking salt into the initial
bootable OS image. This is welcome as salt is an efficient way to
manage embedded hardware, especially when unusual steps must be taken to
enable embedded peripherals like UARTs, SPI, and I2C. Having salt on
your first boot saves the step of bootstrapping.

Would it make sense to maintain the salt-openembedded repo as a part of
openembedded instead of as a product of saltstack? That way the
saltstack folks aren't evaluating pull requests for a technology that
isn't their area of expertise.

-Joel


On 2015-04-06 11:36, Joseph Hall wrote:
> Alejandro,
>
> I don't have an answer on that, but I will say that there are a
> couple of repos in that org that are reactors, not states. So maybe a
> salt-openembedded repo?
>
> Community: any thoughts?
>
> On Mon, Apr 6, 2015 at 9:38 AM, Alejandro del Castillo
> <alejandro....@ni.com> wrote:
>
>> Hi Joseph,
>>
>> The thing is that the Salt recipe for OpenEmbedded is not a Salt
>> state (my
>> understanding is that Formulas are states). It is a file that
>> defines the
>> way to create ipk,deb and rpm's out of Salt source. Specifically, I
>> wanted
>> to submit my Salt recipe (salt_2014.7.1.bb [1]) on the
>> meta-openembedded
>> layer, which has it's upstream at
>>
>> http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-devtools
>> [2]
>> .
>>
>> If it's ok for me to submit salt_2014.7.1.bb [1] on
>> https://github.com/saltstack-formulas [3] to review the bb file, I

Joseph Hall

unread,
Apr 6, 2015, 5:08:15 PM4/6/15
to salt-...@googlegroups.com
Thanks Joel. Based on this and Alejandro's explanation, it does sound like it makes a lot more sense to maintain it with an OpenEmbedded repo instead of with SaltStack.

Alejandro: sound good to you?

--
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/d/optout.

Alejandro del Castillo

unread,
Apr 7, 2015, 12:32:10 PM4/7/15
to salt-...@googlegroups.com
It does, I completely agree. I can post on the openembedded-devel mailing
list to have the yocto gurus review the recipe. However, I would like to
CC someone from the Salt community to make sure my file breakdown,
dependencies (since it's embedded, we need the bare minimum), init scripts
(had to modify them a bit to make them work on embedded), etc are OK.
Would it make sense to add you? anyone else?

cheers,

-Alejandro




From: Joseph Hall <perl...@gmail.com>
To: salt-...@googlegroups.com,
Date: 04/06/2015 04:08 PM
Subject: Re: [salt-users] Salt on OpenEmbedded/Yocto
Sent by: salt-...@googlegroups.com



email to salt-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
"In order to create, you have to have the willingness, the desire to be
challenged, to be learning." -- Ferran Adria (speaking at Harvard, 2011)
--
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.

Alejandro del Castillo

unread,
May 15, 2015, 2:21:53 PM5/15/15
to salt-...@googlegroups.com
For anyone interested, the salt Openemebedded recipe is live on the the master
branch of the meta-openstack layer.

mailing list post:
https://lists.yoctoproject.org/pipermail/meta-virtualization/2015-May/001097.html
location:
http://git.yoctoproject.org/cgit/cgit.cgi/meta-cloud-services/commit/?id=37644a8fe105425099c7c8c57b161720766105d5
--
cheers,

Alejandro
Reply all
Reply to author
Forward
0 new messages