packer-build | Packer Automated VM Image and Vagrant Box Builds
kandi X-RAY | packer-build Summary
kandi X-RAY | packer-build Summary
Packer Automated VM Image and Vagrant Box Builds
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of packer-build
packer-build Key Features
packer-build Examples and Code Snippets
Community Discussions
Trending Discussions on packer-build
QUESTION
I try to install EC2 instance, with pre-installed Jenkins, using the following Packer configuration:
The most important part here is setup.sh script, which installs Jenkins and Java:
...ANSWER
Answered 2021-Nov-01 at 01:40Adding the following command line to setup.sh solved the issue:
QUESTION
I am wondering why my code hangs at the end of my build using OpenVAS Scanner. This is what it shows at the end:
...ANSWER
Answered 2021-Apr-15 at 18:41It hangs because you're doing the wrong thing. You do not want to run the OpenVAS service when provisioning an image, you only want to install it.
The service should only be run when a machine using the image is started. In this case, you probably want to use systemd to start the service. I haven't installed the package myself, but I've checked online and it looks like it installs the requisite systemd configuration for you automatically, but it is probably best to check further by creating an instance of your image and seeing if the server is running. Based on your configuration above, I'd guess that those flags are the defaults anyway and so are probably not necessary. If they're not and you're really attached to them, then there is probably somewhere you can put a configuration file that'll be noticed by the system at startup, and failing that your provisioning script can use sed
to put them in the systemd configuration files.
Solution: don't run OpenVAS during provisioning.
QUESTION
Packer v1.6.6
I have the following Packer template, which creates an AMI for Jenkins. As you can see, it has SSH_PRIVATE_KEY
variable.
ANSWER
Answered 2021-Jan-15 at 18:00It turns out I was using the wrong security_group
for my Packer builder
. It works on my machine, but Jenkins slaves use a different security group. Once I set it to that SG, it worked.
QUESTION
The problem I'm facing is that the Packer build fails.
This is the error I get: Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under '/home/vsts-agent/actions-runner/_work/repo/repo/.github/actions/packer-build'. Did you forget to run actions/checkout before running your local action?
The jsonnet steps work fine and they are coming from a custom action as well. Both actions are defined correctly in the repository. When I rerun checkout after the jsonnet steps the packer build works...however, I lose the jsonnet files.
Has anyone found a work around for this? Here is my config
...ANSWER
Answered 2020-Jul-28 at 09:15That is weird - the two issues should not be connected. Even weirder is the fact that it works, when checking out the code twice. You have an actions.yml in your packer-build folder?
Nevertheless, possible workaround: Use the actions/upload Action to persist your file.
Like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install packer-build
You can use packer-build like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page