Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider calling clean-salt prior to prep-salt targets #434

Open
emkll opened this issue Jan 28, 2020 · 1 comment
Open

Consider calling clean-salt prior to prep-salt targets #434

emkll opened this issue Jan 28, 2020 · 1 comment
Assignees

Comments

@emkll
Copy link
Contributor

emkll commented Jan 28, 2020

The clean-salt Makefile target [1] wll ensure that no old files are lingering in /srv/salt, in the event we remove a .sls file from the repo or from the RPM file without calling make clean. Adding it to prep-salt will ensure it's reliably applied when running make all or make $APP_VM. For RPM, whatever admin script we run can clean salt as part of the post step [3] or when applying the highstate (TBD, per #406).
[1] :

clean-salt: assert-dom0 ## Purges SD Salt configuration from dom0
@echo "Purging Salt config..."
@sudo rm -rf /srv/salt/sd
@sudo find /srv/salt -maxdepth 1 -type f -iname 'fpf*' -delete
@sudo find /srv/salt -maxdepth 1 -type f -iname 'sd*' -delete
@sudo find /srv/salt -maxdepth 1 -type f -iname 'securedrop*' -delete
@sudo find /srv/salt/_tops -lname '/srv/salt/sd-*' -delete

[2] :
prep-salt: assert-dom0 ## Configures Salt layout for SD workstation VMs
@./scripts/prep-salt
@./scripts/validate-config

[3]:

@zenmonkeykstop
Copy link
Contributor

@rocodes to investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants