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

Allow specifying values for "EnhancedService" #134

Open
Jalle19 opened this issue Oct 24, 2024 · 1 comment · May be fixed by #135
Open

Allow specifying values for "EnhancedService" #134

Jalle19 opened this issue Oct 24, 2024 · 1 comment · May be fixed by #135

Comments

@Jalle19
Copy link

Jalle19 commented Oct 24, 2024

Description

Currently, the EnhancedService (https://www.tencentcloud.com/document/api/213/15753#enhancedservice) block is omitted completely, leading to all three services being installed (security, monitoring, automation). The documentation says that AutomationService defaults to false (https://www.tencentcloud.com/document/api/213/15753#runautomationserviceenabled), but this doesn't seem to be the case in practice, judging by the contents of cvm_init.sh:

# cat cvm_init.sh
cd  /qcloud_init/tat_agent_linux_install_1.0.5
./install.sh usevpc
cd  /qcloud_init/stargate_linux_install_20210222
./install.sh usevpc
cd  /qcloud_init/basic_linux_install_1.2.30
./install.sh usevpc public
cd  /qcloud_init/ydeyes_linux_install_5.1.0.118
./install.sh usevpc
ls -l /qcloud_init/ >> /tmp/cvm_init.log
rm -rf /qcloud_init

Use Case(s)

We want to omit automatic installation of ydeyes. This can be done using a checkbox when launching instances manually from the console.

Potential configuration

Optional booleans for each of the services

@Jalle19
Copy link
Author

Jalle19 commented Oct 25, 2024

Whether to enable the TAT service. If this parameter is not specified, the TAT service is enabled for public images and disabled for other images by default.

Okay so this is why tat_agent got installed even though documentation for RunAutomationServiceEnabled says this:

Whether to enable the TAT service. Valid values:
TRUE: yes;
FALSE: no

Default: FALSE.

Jalle19 added a commit to Jalle19/packer-plugin-tencentcloud that referenced this issue Oct 25, 2024
Fixes hashicorp#134

Adds support for customizing the "EnhancedService" block when launching instances.

```
source "tencentcloud-cvm" "source" {
  # ...

  enhanced_service {
    automation_service = true
    monitor_service= true
    security_service = false
  }
}
```

If the block is omitted, behavior remains unchanged (default values are used internally when the instance is launched).
Jalle19 added a commit to Jalle19/packer-plugin-tencentcloud that referenced this issue Oct 25, 2024
Fixes hashicorp#134

Adds support for customizing the "EnhancedService" block when launching instances.

```
source "tencentcloud-cvm" "source" {
  # ...

  enhanced_service {
    automation_service = true
    monitor_service= true
    security_service = false
  }
}
```

If the block is omitted, behavior remains unchanged (default values are used internally when the instance is launched).
@Jalle19 Jalle19 linked a pull request Oct 25, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant