野口礼生
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    それでは新人研修成果発表といたしまして、伊藤と金澤が発表させていただきます。 こちらが目次になります。 最初に私が8月から10月まで行った基礎研修と実践研修についての概要を説明します。 次に実践研修で行ったマリオネットPCの自動構築環境をクラウドシフトするということについて運用イメージや工夫したところ、実際のデモなどで詳しく説明をしていきたいと思います。 最後に研修を通しての感想として終わりとなります。 こちらが一連の流れとなります。 それではまず、研修概要についてです。 私たちは配属されてからの1か月、WordPressサーバ構築を通してプラットフォームの基礎技術を学びました。 まずは手動で構築を行い、Ansibleで自動構築を行いました。 そして次のステップとして、Dockerによる構築でコンテナ技術を学びました。 最後のステップとしてAWSを使用し、クラウド技術を学びました。 ここでは、ECSを使用したautoscaleする環境の構築を行いました。 手動だけでなくTerraformでの自動構築も行いました。 次に実践研修について説明します。 実践研修では、実現方式の検討を含めたシステム構築を行いました。 行ったことは社内接続PCの自動構築環境をクラウドシフトすることです。 こちらが現在の社内接続PC自動構築環境となっています。 しかし、現在の環境ではいくつかの問題点があるためクラウドシフトによりこれらの問題を解決しようと検討、実装をおこないました。 ~~今後、前環境と今回の環境に関してはbefore環境とafter環境と呼ばせていただきます。~~ これから実践研修で行ったことを詳しく説明をしていきたいと思いますが 前提として、before環境のイメージについて説明したいと思います。 まず、本社の7階にあるwindowsserverにレイヤ2接続し構築するPCにサーバ上のベースイメージを展開します。 次に構築するPCのIPと社員番号をGitLabのリポジトリにcommitします。 そうすることでGitLab Runnerが自動起動され、そこからAnsibleを構築するPCに流して必要な設定を行い構築を完了します。 これがbefore環境での構築の流れになります。 このようにマリオPCの自動構築自体は実現できたのですが、今の環境だと XX XX XX といった問題点があります 今回これらの問題をクラウドシフトなどを行うことで改善しましたので、 どのように改善したかについて詳しくご説明します。 先ほども説明しましたが、ベースイメージを展開するにはL2接続できる6階で行う必要がありました。 全社にサービスとして提供することを考えますと、、、媒体さえあればどこでもベースイメージの展開を行えたほうが良いと考えました。 施策としてバックアップ、展開を行うことができるclonezillaというソフトウェア用いることにしました。 二つ目は、現状、多くのOSSを使用していますが、全てのOSSの構築・運用・保守の手順をドキュメント化するのは現実的ではないなど、運用・保守に問題があります。 そのため、運用・保守が最低限となる環境にすべきと考え、 施策としてAWSのマネージドサービスを利用することにしました。 三つ目は自動構築環境の環境構築が手動であるため、構築のための手順が複雑となってしまう問題点があります。 そのため、できるだけ環境は簡単に構築できるべきと考え 施策としてはTerraformによる自動構築を行うようにしました。 このような解決策を行った結果、after環境がどのような環境になったかを説明いたします。 after環境では まず clonezillaの媒体と、ポータブルSSDに保存してあるベースイメージを使用し、PCにベースイメージを展開します その際にVPNであるWireGuardを起動しAWSに接続をします。 次にCodepipelineによりcodebuildを実行します。 CodebuildではVPNを通してclientPCにAnsibleを実行し、構築PCの設定を完了します。 以上が動作手順となります。 次にbefore環境からafter環境へどこがどのように変わったか説明します。 説明したbefore環境とafter環境比較すると、OSインストールに関してはclonezillaとベースイメージの媒体でインストールするようにします。 PCの接続に関してはVPNであるWireGuardを利用しどこからでも繋げるようにいます。 PCの自動構築環境に関してはAWS上にできるだけ自動構築します。 このようなAWSシフトした環境を作るにあたって、苦戦したところ、工夫したところを3つ程、具体的に説明をしていきたいと思います。 マリオネットPCベースイメージのバックアップと展開とAWS上からクライアントPCへAnsibleを実行するためのVPN環境については、私伊藤が、Terraformを使った自動構築を金澤が説明させていただきます。 まず一つ目は、マリオネットPCのベースイメージの展開についてです。 before環境環境は本社の7階にあるwindowsserverに接続しPXEブートを実行することでPCにサーバ上のベースイメージをインストールします。 after環境ではバックアップ、リストアを行うことができるclonezillaと呼ばれるソフトウェアを用います。 まず事前準備として、Clonezillaの媒体を用いてベースイメージを用意します。 そしてまたclonezillaを用いてバックアップしたものを構築するPCにインストールします。 このようにローカル環境でOSのインストールを行うことができます。 二つ目は、 AWS上からクライアントPCへAnsibleを実行するためのVPN環境についてです。 問題点のところで話したように管理を容易にするためにAWSのマネージドサービスであるAWS client VPNの使用を検討していました。 公式にはAnsibleを流す際に必要である、AWS側からクライアント側への通信についての記述がはっきりと書かれていなかったため実際に通信ができるかどうか試作しましたが、通信を行うことができませんでした。 そこに関しての質問をサポートに問い合わせたところ対応していないという返信をいただいたためclientVPNの使用を断念しました。 代わりとしてインスタンス側→クライアント側の通信を確認することができたVPNのオープンソースソフトウェアであるwireguardを利用しました。 具体的にはAWS上にVPNサーバとしてEC2インスタンスを作成し、Ansibleを用いて自動構築できるようにしたり、CodeCommit上に必要な設定ファイルを置いてクローンしたりしてマネージドサービスのAWS client VPNと同様のサービスを受けられるようにしました。 三つ目のXXは金澤さんお願いします。

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully