This are my notes about a code I wrote down last week. It may be a bit chaotic... We may consider to make some changes based on this notes or we can just wait for refactoring and ignore it...
general setup:
only 'check semodule' and install missing packages
check semodule is called only in general setup
does it mean it is only necessary for package installation?
This makes me ask - what should and should not be in 'general setup'? Why is for example 'create_sssd_config' standalone?
setup_virtcacard:
local user is created here (an it is not logical)
we need to setup card to create local user
addition of local user should be standalone/separate function (similarly to addition of IPA user) for the clarity of code
create_softhsm2_config:
is called in 'create_sc' twice:
A) separately
B) as part of setup_virtcacard
...and setup_virtcacard is called only in create_sc so call of create_softhsm2_config can be removed either from A) or B)
This are my notes about a code I wrote down last week. It may be a bit chaotic... We may consider to make some changes based on this notes or we can just wait for refactoring and ignore it...
general setup:
setup_virtcacard:
create_softhsm2_config: