Skip to content

Conversation

@dominik-przybyl-wttech
Copy link
Contributor

No description provided.

{
"name": "aem",
"version": "0.1.2-alpha.1718453175+e73fab23",
"version": "0.1.2-alpha.1718453293+5c68305a.dirty",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?


func (ic *InstanceClient) configureService() error {
if !ic.data.System.ServiceEnabled || ic.data.Client.Type == "local" {
if !ic.data.System.ServiceEnabled {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't remeber such bool serviceEnabled in TF provider... why have you introduced it? these providers should not be so different

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

system service is must have; we want to maintain only the single and correct way of setting up AEM instances... maintaining variations will increase complexity

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm if serviceEnabled = false then runServiceCommand("start") need be replaced by "sh aemw instance launch" command and the similar thing for stopping

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for non-admin usages like on local/dev machine it would be fine

DataDir string `pulumi:"data_dir,optional"`
WorkDir string `pulumi:"work_dir,optional"`
Env map[string]string `pulumi:"env,optional"`
ServiceEnabled bool `pulumi:"service_enabled,optional"`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?


string? service_config,

bool? service_enabled,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Collaborator

@krystian-panek-vmltech krystian-panek-vmltech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

serviceEnabled / system service is must-have, not an optional thing

System: compose.SystemArgs{
Data_dir: pulumi.String(composeDir),
Work_dir: pulumi.String(workDir),
Service_enabled: pulumi.Bool(false),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't want to have ServiceEnabled here

Copy link
Collaborator

@krystian-panek-vmltech krystian-panek-vmltech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if systemd is optional then starting/stopping instance need to be aligned

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants