{"id":19675071,"url":"https://github.com/mesosphere/vsphere-base-template","last_synced_at":"2025-02-27T05:28:39.992Z","repository":{"id":150323601,"uuid":"605272316","full_name":"mesosphere/vsphere-base-template","owner":"mesosphere","description":"D2iQ vm templates to be used in vSphere","archived":false,"fork":false,"pushed_at":"2024-08-19T22:43:28.000Z","size":126,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-08-20T19:10:04.686Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mesosphere.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-22T20:14:41.000Z","updated_at":"2024-08-19T21:52:47.000Z","dependencies_parsed_at":"2024-01-04T17:27:03.349Z","dependency_job_id":"3927b526-f051-46d0-a024-d35fb20d045e","html_url":"https://github.com/mesosphere/vsphere-base-template","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mesosphere%2Fvsphere-base-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mesosphere%2Fvsphere-base-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mesosphere%2Fvsphere-base-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mesosphere%2Fvsphere-base-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mesosphere","download_url":"https://codeload.github.com/mesosphere/vsphere-base-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240983449,"owners_count":19888690,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T17:21:06.928Z","updated_at":"2025-02-27T05:28:39.958Z","avatar_url":"https://github.com/mesosphere.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# D2iQ vSphere Base Images\n\n*Disclaimer: this project is being used providing internal base images for vSphere. These are not meant for production use.*\n\nPlease refer to github.com/mesosphere/konvoy-image-builder/ for DKP images\n\n## Prerequisites\n\n- the tooling expects [jq](https://stedolan.github.io/jq/download/) to be installed\n- ensure `make`, `wget` and `unzip\n- ensure to have `mkiso` on the system running this\n- For vsphere connection `VSPHERE_SERVER` `VSPHERE_USER` and `VSPHERE_PASSWORD` environment variables must be set\n- also `GOVC_URL` must be set. This can be achieved by `export GOVC_URL=\"${VSPHERE_USER}:${VSPHERE_PASSWORD}@${VSPHERE_SERVER}\"`\n\nFollowing variables must be set according to structure of the vSphere setup:\n\n- `PKR_VAR_vsphere_datacenter`: name of the vsphere datacenter to be used\n- `PKR_VAR_vsphere_cluster`: name of the vsphere cluster to be used\n- `PKR_VAR_vsphere_datastore`: the datastore templates and vms are placed on\n- `PKR_VAR_vsphere_network`: a vSphere network which can be reached from the machine running the build ( SSH ports needed )\n\n### RHEL\n\nFor Red Hat Enterprise Linux builds you need to set\n\n- RHN_USERNAME - as the subscription manager username\n- RHN_PASSWORD - as the subscription manager password\n\nor using [Activation Keys](https://access.redhat.com/management/activation_keys)\n\n- RHN_SUBSCRIPTION_KEY - as the activation key name\n- RHN_SUBSCRIPTION_ORG - as the activation organisation\n\nTo be able to install RHEL you would need to provide an ISO to the vSphere cluster. Download the ISO using your RHN account and upload it to an vSphere datastore.\n\n`PKR_VAR_iso_path_entry=\"[your-data-store-name] path/to/rhel-server-7.9-x86_64-dvd.iso\"` tells packer where to get the ISO from\n\n### Flatcar\n\nFlatar builds requries ignition templates for boot\n\n- run `hack/flatcar/build_ignition.sh` to generate ignition configuration at `/tmp/ignition.json`\n- copy the contents of `/tmp/ignition.json` to `bootfiles/flatcar/bootfile.sh.tmpl`\n\nFlatcar expects ignition config in `guestinfo.ignition.config.data` and its format in `guestinfo.ignition.config.data.encoding`. Be aware that cloud-init in `guestinfo.coreos.config.data` won't work. To make build and test aware a packager variable `bootconfig_type` was introduced which could be `ignition` or by default `cloudinit`\n\n## Build\n\nThere are distribution based make targets for building images\n\n- `make ubuntu` - Ubuntu 20.04 and 22.04\n- `make rocky` - Ubuntu 8 and 9\n- `make centos` - Centos 7.9\n- `make oraclelinux` - OracleLinux 9.10\n- `make flatcar` - Flatcar LTS\n- `make rhel` - RHEL 7.9(EOL no longer tested), 8.4, 8.6 and 8.8, 8.10, 9.4\n\nTemplates and VMs are created by default in the folder `build-d2iq-base-templates` This can be changed by injecting the environment variable `VSPHERE_FOLDER`\n\nvm and template names are generated with this schema `d2iq-base-\u003cDistro\u003e-\u003cVersion\u003e${NAME_POSTFIX}` while NAME_POSTFIX is by default `-manual-build-$(shell whoami)` to support local builds. The postfix can be changed by injecting the environment variable `NAME_POSTFIX`\n\n## Test\n\nLike build tests can be executed by distribution. For exmaple `make ubuntu-test`. This will build a template using build steps and afterwards start a new build using the clone method using the previously generated template.\n\nThis packer build will execute scripts in ./tests. Whenever the do not exit 0 an error is thrown.\n\nAfter successfully testing a template the test vm and its template are being deleted.\n\n## Release\n\nThe release target for each distribution e.g. `ubuntu-release` will run a normal build process and then rename the instance to delete its build postfix. After renaming the template will be moved from the build folder (`VSPHERE_FOLDER`) into `RELEASE_FOLDER` which is by default `d2iq-base-templates`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmesosphere%2Fvsphere-base-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmesosphere%2Fvsphere-base-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmesosphere%2Fvsphere-base-template/lists"}