Skip to content

Commit 7500059

Browse files
evgeniehelms
authored andcommitted
enable parameter persistence
1 parent 4e2c6a9 commit 7500059

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

rop

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ OBSAH_NAME=rop
44
OBSAH_BASE=.
55
OBSAH_DATA=${OBSAH_BASE}/src
66
OBSAH_INVENTORY=${OBSAH_BASE}/inventories
7-
export OBSAH_NAME OBSAH_DATA OBSAH_INVENTORY
7+
OBSAH_STATE=.var/lib/rop
8+
OBSAH_PERSIST_PARAMS=true
9+
export OBSAH_NAME OBSAH_DATA OBSAH_INVENTORY OBSAH_STATE OBSAH_PERSIST_PARAMS
810

911
exec obsah "$@"

rop.spec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Requires: ansible-collection-community-general
1414
Requires: ansible-collection-community-postgresql
1515
Requires: ansible-collection-containers-podman >= 1.14.0
1616
Requires: ansible-collection-theforeman-foreman
17-
Requires: python3-obsah >= 1.1
17+
Requires: python3-obsah >= 1.3
1818

1919
# These are needed on the target host, which is usually localhost
2020
Recommends: podman
@@ -39,11 +39,13 @@ INVENTORY
3939

4040
sed -i '/^OBSAH_BASE=/ s|=.\+|=%{_datadir}/%{name}|' rop
4141
sed -i '/^OBSAH_INVENTORY=/ s|=.\+|=%{_sysconfdir}/%{name}/inventory|' rop
42+
sed -i '/^OBSAH_STATE=/ s|=.\+|=%{_sharedstatedir}/%{name}|' rop
4243

4344
%install
4445
install -d -m0755 %{buildroot}%{_sysconfdir}/%{name}
4546
install -d -m0755 %{buildroot}%{_datadir}/%{name}
4647
install -d -m0755 %{buildroot}%{_bindir}
48+
install -d -m0750 %{buildroot}%{_sharedstatedir}/%{name}
4749

4850
cp inventories/quadlet %{buildroot}%{_sysconfdir}/%{name}/inventory
4951
cp -r src %{buildroot}%{_datadir}/%{name}
@@ -54,6 +56,7 @@ cp -r rop %{buildroot}%{_bindir}/%{name}
5456
%{_bindir}/rop
5557
%{_datadir}/%{name}
5658
%config(noreplace) %{_sysconfdir}/%{name}
59+
%{_sharedstatedir}/%{name}
5760

5861

5962
%changelog

src/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
obsah >= 1.1
1+
obsah >= 1.3
22
requests

0 commit comments

Comments
 (0)