# having sls files executed on clinet registration

**URL:** <https://forums.suse.com/t/having-sls-files-executed-on-clinet-registration/34513>\
**Category:** SUSE Multi Linux Manager\
**Created:** [November 1, 2019, 10:21pm UTC](https://forums.suse.com/t/having-sls-files-executed-on-clinet-registration/34513 "2019-11-01T22:21:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![julianrogan](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@julianrogan](https://forums.suse.com/u/julianrogan)\
**Post date:** [November 1, 2019, 10:21pm UTC](https://forums.suse.com/t/having-sls-files-executed-on-clinet-registration/34513/1 "2019-11-01T22:21:21Z")

</div>

I am confused. I have only been using suse manager for a few months. I am trying to configure auto-configuration on client registration. I have configured several configuration channels with sls file and the sls files are located here - /srv/susemanager/salt/manager\_org\_1/\*.sls

I added the configuration channels to the activation key and registered a client and the config scripts were not executed. I then checked the box - Deploy configuration files to systems on registration. I then re-registered the client but again the config files were not executed. I then moved the sls files under /srv/salt and configured the top.sls files. I re-registered the client and this time the client was configured. So I am confused. What is the point of configuring the configuration channels in the first place when they don’t go in the “highstate” directory? I can’t find any manual that is clear about how this works.

---

<div class="post-metadata">

**Author:** ![strahil-nikolov-dxc](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@strahil-nikolov-dxc](https://forums.suse.com/u/strahil-nikolov-dxc)\
**Post date:** [November 4, 2019, 7:29pm UTC](https://forums.suse.com/t/having-sls-files-executed-on-clinet-registration/34513/2 "2019-11-04T19:29:20Z")

</div>

[QUOTE=julianrogan;58765]I am confused. I have only been using suse manager for a few months. I am trying to configure auto-configuration on client registration. I have configured several configuration channels with sls file and the sls files are located here - /srv/susemanager/salt/manager\_org\_1/\*.sls

I added the configuration channels to the activation key and registered a client and the config scripts were not executed. I then checked the box - Deploy configuration files to systems on registration. I then re-registered the client but again the config files were not executed. I then moved the sls files under /srv/salt and configured the top.sls files. I re-registered the client and this time the client was configured. So I am confused. What is the point of configuring the configuration channels in the first place when they don’t go in the “highstate” directory? I can’t find any manual that is clear about how this works.[/QUOTE]

You are not supposed to put your sls in that directory.  
You have 2 options:

1. If you want your sls to be valid for all systems in the organisations , then you can create a configuration channel, import your sls files and then go to ‘Home’ → ‘My Organization’-\> ‘Configuration channels’ and then search and attach your configuration channel. Once you do that and go to any system in the organisation - the ‘State’ → ‘Highstate’ will show all states + your configuration.
2. You can create a top.sls in /srv/salt and limit your sls to some subset of systems .
