File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,11 @@ func run(cmd *cobra.Command, argv []string) error {
102102 BootVolumeSizeInGBs : common .Int64 (600 ),
103103 BootVolumeVpusPerGB : common .Int64 (120 ),
104104 },
105+ AgentConfig : & core.LaunchInstanceAgentConfigDetails {PluginsConfig : []core.InstanceAgentPluginConfigDetails {{DesiredState : core .InstanceAgentPluginConfigDetailsDesiredStateEnabled ,
106+ Name : common .String ("Compute Instance Monitoring" )}},
107+ AreAllPluginsDisabled : common .Bool (false ),
108+ IsMonitoringDisabled : common .Bool (false ),
109+ },
105110 })
106111 if err != nil {
107112 return fmt .Errorf ("failed to create machine: %w" , err )
@@ -156,6 +161,7 @@ func run(cmd *cobra.Command, argv []string) error {
156161 "sudo setfacl -m u:ubuntu:rw /var/run/docker.sock" ,
157162 "sudo sysctl fs.inotify.max_user_instances=1280" ,
158163 "sudo sysctl fs.inotify.max_user_watches=655360" ,
164+ "sudo snap install oracle-cloud-agent --classic" ,
159165 "export PATH=$PATH:/home/ubuntu/.local/bin && export HOME=/home/ubuntu && export NVM_DIR=/home/ubuntu/.nvm && bash -x /home/ubuntu/run.sh --jitconfig \" ${ACTIONS_RUNNER_INPUT_JITCONFIG}\" " ,
160166 }
161167
You can’t perform that action at this time.
0 commit comments