These are Terraform modules that deploys Qualys Virtual Scanner appliance on Oracle Cloud Infrastructure (OCI) from the Oracle Cloud Infrastructure Marketplace.
- Customers will have an active Qualys subscription.
- Scanner personalization code (14 digits) obtained from your Qualys account.
Qualys Virtual Scanner simple template should provision all necessary Networking Infrastructure resources to enable you to launch a Virtual Scanner VM, including VCN, Public Subnet, Internet Gateway, Route Tables, Network Security Groups.
Now, we'll want a local copy of this repo by running:
git clone https://github.com/oracle-quickstart/oci-qualys.git
The TF templates can be initialized by running the following commands:
cd oci-qualys/virtual-scanner/simple
terraform init
This gives the following output:
Next, you should modify our template variables accordingly to our OCI Tenancy.
You can use the boilerplate available on terraform.tfvars.template to setup the OCI provider variables. Rename the file to terraform.tfvars
so that Terraform CLI can automatically pick it up as the default variables configuration overriding the content of variables.tf.
user_ocid = "ocid1.user.oc1.."
fingerprint = "1c.."
private_key_path = "~/.oci/oci_api_key.pem"
tenancy_ocid = "ocid1.tenancy.oc1.."
compartment_ocid = "ocid1.compartment.oc1."
region = "us-ashburn-1"
availability_domain_number = "1"
perscode = "11223344556677"
proxy_url = "proxyserver:3128"
Now we should run a plan to make sure everything looks good:
terraform plan
Finally, if everything is good, we can go ahead and apply:
terraform apply # will prompt to confirm and continue the operation
The output of terraform apply
should look like:
If all the settings are configured correctly the scanner will be activated successfully.
You can optionally create a Instance Console connection and attach to the VM to track the boot and activation progress. Then you can connect to the Serial console using a Secure Shell (SSH) or VNC console using a VNC client.
Additional details available on Qualys Virtual Scanner documentation.