Skip to content

Commit

Permalink
Merge branch 'master' of github.com:waterbear-cloud/paco
Browse files Browse the repository at this point in the history
  • Loading branch information
gitwater committed Jan 14, 2021
2 parents d29ac96 + 624befe commit 8b00aa0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ Changelog for Paco
9.2.2 (unreleased)
------------------

### Changed

- ASG launch options field `codedeploy_agent` now defaults to False.

### Fixed

- `paco.sub` will now lookup the Stack Output for refs that refer to Stacks.
Expand Down
6 changes: 1 addition & 5 deletions src/paco/application/ec2_launch_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1791,10 +1791,6 @@ def lb_add_codedeploy(self, bundle_name, resource):
"""Creates a launch bundle to install and configure the CodeDeploy agent"""
# Create the Launch Bundle
codedeploy_lb = LaunchBundle(resource, self, bundle_name)
codedeploy_enabled = True
if not resource.launch_options.codedeploy_agent:
codedeploy_enabled = False

launch_script = f"""#!/bin/bash
function stop_agent() {{
Expand Down Expand Up @@ -1858,7 +1854,7 @@ def lb_add_codedeploy(self, bundle_name, resource):
yum erase codedeploy-agent -y
}}
"""
codedeploy_lb.set_launch_script(launch_script, codedeploy_enabled)
codedeploy_lb.set_launch_script(launch_script, resource.launch_options.codedeploy_agent)
self.add_bundle(codedeploy_lb)

def process_bundles(self, resource, instance_iam_role_ref):
Expand Down

0 comments on commit 8b00aa0

Please sign in to comment.