Seagate / halon

High availability solution
Apache License 2.0
1 stars 0 forks source link

WIP: scripts/h0: Don't run m0genfacts if H0_SKIP_FACTS is set #1520

Closed 1468ca0b-2a64-4fb4-8e52-ea5806644b4c closed 5 years ago

1468ca0b-2a64-4fb4-8e52-ea5806644b4c commented 5 years ago

Created by: vvv

vvv commented 5 years ago

closed

vvv commented 5 years ago

Abandoned in favour of #1527.

andriytk commented 5 years ago

A simple switch would be more convenient than the env variable. Sometimes I do need to rewrite the facts file.

vvv commented 5 years ago

changed the description

vvv commented 5 years ago

changed title from {-[XXX-WIP]-} scripts/h0: Don't run m0genfacts if H0_SKIP_FACTS is set to {+WIP:+} scripts/h0: Don't run m0genfacts if H0_SKIP_FACTS is set

vvv commented 5 years ago

marked as a Work In Progress

vvv commented 5 years ago

I meant some switch to h0 init to not run genfacts.

m0genfacts is not run when the environment variable is set:

H0_SKIP_FACTS=1 h0 init

Unfortunately, the facts file is still removed by install-halon-services --uninstall... I'll try to come up with a workaround.

andriytk commented 5 years ago

No, it is not. I meant some switch to h0 init to not run genfacts.

chumakd commented 5 years ago

assigned to @andriy.tkachuk

1468ca0b-2a64-4fb4-8e52-ea5806644b4c commented 5 years ago

Created by: vvv

@andriytk I'm not sure if this is what you need. Can you check please?

Note that /etc/halon/ is deleted (by install-halon-services --uninstall) with no regard to H0_SKIP_FACTS variable.